From 7bfdf52db287c0f857e070af7c9157d2e92dfb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Mon, 12 Dec 2022 19:13:58 +0100 Subject: [PATCH] tools/record: fix quirk error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When libinput-record fails to parse the quirks, it suggest to use the --verbose flag to get more details. However, libinput-record does not support the --verbose flag. Replace the error message and add a link to the documentation instead. Signed-off-by: José Expósito --- tools/libinput-record.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/libinput-record.c b/tools/libinput-record.c index 0b03ad06..30b29002 100644 --- a/tools/libinput-record.c +++ b/tools/libinput-record.c @@ -1782,9 +1782,13 @@ print_device_quirks(struct record_device *dev) QLOG_CUSTOM_LOG_PRIORITIES); if (!quirks) { fprintf(stderr, - "Failed to initialize the device quirks. " - "Please see the above errors " - "and/or re-run with --verbose for more details\n"); + "Failed to load the device quirks from %s%s%s. " + "This will negatively affect device behavior. " + "See %s/device-quirks.html for details.\n", + data_path, + override_file ? " and " : "", + override_file ? override_file : "", + HTTP_DOC_LINK); return; }