From 59ca9718987d831ffc17ecf0a7df3817727f928a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 22 Feb 2021 14:52:16 +1000 Subject: [PATCH] tools/record: print a header as first line To make the file format easier to detect Signed-off-by: Peter Hutterer --- tools/libinput-record.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libinput-record.c b/tools/libinput-record.c index 26aa8108..067d8136 100644 --- a/tools/libinput-record.c +++ b/tools/libinput-record.c @@ -1484,6 +1484,7 @@ print_system_header(struct record_context *ctx) static void print_header(struct record_context *ctx) { + iprintf(ctx, "# libinput record\n"); iprintf(ctx, "version: %d\n", FILE_VERSION_NUMBER); iprintf(ctx, "ndevices: %d\n", ctx->ndevices); print_libinput_header(ctx);