mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-16 13:54:52 +00:00
trivial: ebitdo: don't dump out firmware header unless plugin verbose
This commit is contained in:
parent
cee97bc674
commit
b73d255b13
@ -424,9 +424,11 @@ fu_ebitdo_device_write_firmware (FuDevice *device,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* print details about the firmware */
|
|
||||||
hdr = (FuEbitdoFirmwareHeader *) g_bytes_get_data (fw, NULL);
|
hdr = (FuEbitdoFirmwareHeader *) g_bytes_get_data (fw, NULL);
|
||||||
fu_ebitdo_dump_firmware_header (hdr);
|
/* print details about the firmware */
|
||||||
|
if (g_getenv ("FWUPD_EBITDO_VERBOSE") != NULL)
|
||||||
|
fu_ebitdo_dump_firmware_header (hdr);
|
||||||
|
|
||||||
/* check the file size */
|
/* check the file size */
|
||||||
payload_len = (guint32) (g_bytes_get_size (fw) - sizeof (FuEbitdoFirmwareHeader));
|
payload_len = (guint32) (g_bytes_get_size (fw) - sizeof (FuEbitdoFirmwareHeader));
|
||||||
|
Loading…
Reference in New Issue
Block a user