trivial: Fix debugging with FU_HID_DEVICE_VERBOSE

This commit is contained in:
Richard Hughes 2022-12-15 16:24:46 +00:00
parent 87ffda474b
commit 2c5ee07340

View File

@ -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,