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,