From a0def65b64d89798ec5ecae775a6fab6f044794f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Thu, 16 Apr 2020 15:54:38 +0100 Subject: [PATCH] hidpp10: add debug log on hidpp10_onboard_profiles_parse_macro fail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe LaĆ­ns --- src/hidpp10.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hidpp10.c b/src/hidpp10.c index ff278bf4..553dc438 100644 --- a/src/hidpp10.c +++ b/src/hidpp10.c @@ -1198,8 +1198,10 @@ hidpp10_onboard_profiles_parse_macro(struct hidpp10_device *device, hidpp_log_raw(&device->base, "*** macro starts at (0x%02x, 0x%04x) ***\n", page, offset); rc = hidpp10_onboard_profiles_read_macro(device, page, offset, ¯o); - if (rc) + if (rc) { + hidpp_log_raw(&device->base, "hidpp10: failed to read macro\n"); return rc; + } count = rc;