mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-24 15:26:40 +00:00
colorhug: Do not use two prefixes for trivial log messages
G_LOG_DOMAIN is set to something ColorHug-specific already.
This commit is contained in:
parent
85dbcbf534
commit
28abc4f60d
@ -188,7 +188,7 @@ fu_plugin_verify (FuPlugin *plugin,
|
||||
return FALSE;
|
||||
|
||||
/* get the firmware from the device */
|
||||
g_debug ("ColorHug: Verifying firmware");
|
||||
g_debug ("verifying firmware");
|
||||
ch_device_queue_read_firmware (data->device_queue, item->usb_device,
|
||||
&data2, &len);
|
||||
fu_plugin_set_status (plugin, FWUPD_STATUS_DEVICE_VERIFY);
|
||||
@ -260,7 +260,7 @@ fu_plugin_update (FuPlugin *plugin,
|
||||
|
||||
/* switch to bootloader mode */
|
||||
if (!item->is_bootloader) {
|
||||
g_debug ("ColorHug: Switching to bootloader mode");
|
||||
g_debug ("switching to bootloader mode");
|
||||
if (!fu_plugin_colorhug_open (item, error))
|
||||
return FALSE;
|
||||
ch_device_queue_reset (data->device_queue, item->usb_device);
|
||||
@ -281,7 +281,7 @@ fu_plugin_update (FuPlugin *plugin,
|
||||
g_usb_device_close (item->usb_device, NULL);
|
||||
|
||||
/* wait for reconnection */
|
||||
g_debug ("ColorHug: Waiting for bootloader");
|
||||
g_debug ("waiting for bootloader");
|
||||
if (!fu_plugin_colorhug_wait_for_connect (plugin, item, error))
|
||||
return FALSE;
|
||||
}
|
||||
@ -291,7 +291,7 @@ fu_plugin_update (FuPlugin *plugin,
|
||||
return FALSE;
|
||||
|
||||
/* write firmware */
|
||||
g_debug ("ColorHug: Writing firmware");
|
||||
g_debug ("writing firmware");
|
||||
ch_device_queue_write_firmware (data->device_queue, item->usb_device,
|
||||
g_bytes_get_data (item->fw_bin, NULL),
|
||||
g_bytes_get_size (item->fw_bin));
|
||||
@ -309,7 +309,7 @@ fu_plugin_update (FuPlugin *plugin,
|
||||
}
|
||||
|
||||
/* verify firmware */
|
||||
g_debug ("ColorHug: Veifying firmware");
|
||||
g_debug ("verifying firmware");
|
||||
ch_device_queue_verify_firmware (data->device_queue, item->usb_device,
|
||||
g_bytes_get_data (item->fw_bin, NULL),
|
||||
g_bytes_get_size (item->fw_bin));
|
||||
@ -327,7 +327,7 @@ fu_plugin_update (FuPlugin *plugin,
|
||||
}
|
||||
|
||||
/* boot into the new firmware */
|
||||
g_debug ("ColorHug: Booting new firmware");
|
||||
g_debug ("booting new firmware");
|
||||
ch_device_queue_boot_flash (data->device_queue, item->usb_device);
|
||||
fu_plugin_set_status (plugin, FWUPD_STATUS_DEVICE_RESTART);
|
||||
if (!ch_device_queue_process (data->device_queue,
|
||||
@ -352,7 +352,7 @@ fu_plugin_update (FuPlugin *plugin,
|
||||
return FALSE;
|
||||
|
||||
/* set flash success */
|
||||
g_debug ("ColorHug: Setting flash success");
|
||||
g_debug ("setting flash success");
|
||||
ch_device_queue_set_flash_success (data->device_queue, item->usb_device, 1);
|
||||
if (!ch_device_queue_process (data->device_queue,
|
||||
CH_DEVICE_QUEUE_PROCESS_FLAGS_NONE,
|
||||
@ -378,12 +378,12 @@ fu_plugin_update (FuPlugin *plugin,
|
||||
}
|
||||
|
||||
/* get the new firmware version */
|
||||
g_debug ("ColorHug: Getting new firmware version");
|
||||
g_debug ("getting new firmware version");
|
||||
item->got_version = FALSE;
|
||||
fu_plugin_colorhug_get_firmware_version (item);
|
||||
|
||||
if (item->got_version)
|
||||
g_debug ("ColorHug: DONE!");
|
||||
g_debug ("DONE!");
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user