From b73d255b13b46237b991632d547fea63a3610848 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Sat, 12 Oct 2019 11:33:01 -0500 Subject: [PATCH] trivial: ebitdo: don't dump out firmware header unless plugin verbose --- plugins/ebitdo/fu-ebitdo-device.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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));