diff --git a/plugins/ebitdo/fu-ebitdo-device.c b/plugins/ebitdo/fu-ebitdo-device.c index b7f13e39a..abd69dedb 100644 --- a/plugins/ebitdo/fu-ebitdo-device.c +++ b/plugins/ebitdo/fu-ebitdo-device.c @@ -424,9 +424,11 @@ fu_ebitdo_device_write_firmware (FuDevice *device, return FALSE; } - /* print details about the firmware */ + 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 */ payload_len = (guint32) (g_bytes_get_size (fw) - sizeof (FuEbitdoFirmwareHeader));