From 2c5ee073405c26d23d12d993355dffe2db7f4810 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 15 Dec 2022 16:24:46 +0000 Subject: [PATCH] trivial: Fix debugging with FU_HID_DEVICE_VERBOSE --- libfwupdplugin/fu-hid-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfwupdplugin/fu-hid-device.c b/libfwupdplugin/fu-hid-device.c index fd34a83c3..00a8422f5 100644 --- a/libfwupdplugin/fu-hid-device.c +++ b/libfwupdplugin/fu-hid-device.c @@ -309,7 +309,7 @@ fu_hid_device_set_report_internal(FuHidDevice *self, FuHidDeviceRetryHelper *hel if (g_getenv("FU_HID_DEVICE_VERBOSE") != NULL) { g_autofree gchar *title = NULL; - title = g_strdup_printf("HID::SetReport [wValue=0x%04x ,wIndex=%u]", + title = g_strdup_printf("HID::SetReport [wValue=0x%04x, wIndex=%u]", wvalue, priv->interface); fu_dump_raw(G_LOG_DOMAIN, title, helper->buf, helper->bufsz); @@ -442,7 +442,7 @@ fu_hid_device_get_report_internal(FuHidDevice *self, FuHidDeviceRetryHelper *hel title = g_strdup_printf("HID::GetReport [wValue=0x%04x, wIndex=%u]", wvalue, priv->interface); - fu_dump_raw(G_LOG_DOMAIN, title, helper->buf, actual_len); + fu_dump_raw(G_LOG_DOMAIN, title, helper->buf, helper->bufsz); } if (!g_usb_device_control_transfer(usb_device, G_USB_DEVICE_DIRECTION_DEVICE_TO_HOST,