mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 04:00:41 +00:00
trivial: Fix debugging with FU_HID_DEVICE_VERBOSE
This commit is contained in:
parent
87ffda474b
commit
2c5ee07340
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user