trivial: logical-hidpp: fix some debugging messages not working

This commit is contained in:
Mario Limonciello 2020-03-17 14:25:46 -05:00 committed by Mario Limonciello
parent c6ae0d998b
commit 15cb61b34e
2 changed files with 6 additions and 6 deletions

View File

@ -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);
}

View File

@ -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);
}