mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 21:30:48 +00:00
trivial: logical-hidpp: fix some debugging messages not working
This commit is contained in:
parent
c6ae0d998b
commit
15cb61b34e
@ -337,7 +337,7 @@ fu_logitech_hidpp_bootloader_request (FuLogitechHidPpBootloader *self,
|
||||
return FALSE;
|
||||
|
||||
/* send request */
|
||||
if (g_getenv ("FWUPD_UNIFYING_VERBOSE") != NULL) {
|
||||
if (g_getenv ("FWUPD_LOGITECH_HIDPP") != NULL) {
|
||||
fu_common_dump_raw (G_LOG_DOMAIN, "host->device",
|
||||
buf_request, sizeof (buf_request));
|
||||
}
|
||||
@ -373,7 +373,7 @@ fu_logitech_hidpp_bootloader_request (FuLogitechHidPpBootloader *self,
|
||||
&error_ignore)) {
|
||||
g_debug ("ignoring: %s", error_ignore->message);
|
||||
} else {
|
||||
if (g_getenv ("FWUPD_UNIFYING_VERBOSE") != NULL) {
|
||||
if (g_getenv ("FWUPD_LOGITECH_HIDPP") != NULL) {
|
||||
fu_common_dump_raw (G_LOG_DOMAIN, "device->host",
|
||||
buf_response, actual_length);
|
||||
}
|
||||
@ -409,7 +409,7 @@ fu_logitech_hidpp_bootloader_request (FuLogitechHidPpBootloader *self,
|
||||
}
|
||||
actual_length = sizeof (buf_response);
|
||||
}
|
||||
if (g_getenv ("FWUPD_UNIFYING_VERBOSE") != NULL) {
|
||||
if (g_getenv ("FWUPD_LOGITECH_HIDPP") != NULL) {
|
||||
fu_common_dump_raw (G_LOG_DOMAIN, "device->host",
|
||||
buf_response, actual_length);
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ fu_logitech_hidpp_send (FuIOChannel *io_channel,
|
||||
msg->function_id |= FU_UNIFYING_HIDPP_MSG_SW_ID;
|
||||
|
||||
/* detailed debugging */
|
||||
if (g_getenv ("FWUPD_UNIFYING_VERBOSE") != NULL) {
|
||||
if (g_getenv ("FWUPD_LOGITECH_HIDPP") != NULL) {
|
||||
g_autofree gchar *str = fu_logitech_hidpp_msg_to_string (msg);
|
||||
fu_common_dump_raw (G_LOG_DOMAIN, "host->device", (guint8 *) msg, len);
|
||||
g_print ("%s", str);
|
||||
@ -111,7 +111,7 @@ fu_logitech_hidpp_receive (FuIOChannel *io_channel,
|
||||
}
|
||||
|
||||
/* check long enough, but allow returning oversize packets */
|
||||
if (g_getenv ("FWUPD_UNIFYING_VERBOSE") != NULL)
|
||||
if (g_getenv ("FWUPD_LOGITECH_HIDPP") != NULL)
|
||||
fu_common_dump_raw (G_LOG_DOMAIN, "device->host", (guint8 *) msg, read_size);
|
||||
if (read_size < fu_logitech_hidpp_msg_get_payload_length (msg)) {
|
||||
g_set_error (error,
|
||||
@ -124,7 +124,7 @@ fu_logitech_hidpp_receive (FuIOChannel *io_channel,
|
||||
}
|
||||
|
||||
/* detailed debugging */
|
||||
if (g_getenv ("FWUPD_UNIFYING_VERBOSE") != NULL) {
|
||||
if (g_getenv ("FWUPD_LOGITECH_HIDPP") != NULL) {
|
||||
g_autofree gchar *str = fu_logitech_hidpp_msg_to_string (msg);
|
||||
g_print ("%s", str);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user