From daa341720f48da3076df55cad5a3f73a54b1aadf Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 18 Sep 2017 11:06:29 +0100 Subject: [PATCH] trivial: Show the interface size for an invalid DFU device --- plugins/dfu/dfu-device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/dfu/dfu-device.c b/plugins/dfu/dfu-device.c index 1f92bfe4c..c99e78d28 100644 --- a/plugins/dfu/dfu-device.c +++ b/plugins/dfu/dfu-device.c @@ -278,7 +278,9 @@ dfu_device_parse_iface_data (DfuDevice *device, GBytes *iface_data) /* parse the functional descriptor */ desc = g_bytes_get_data (iface_data, &iface_data_length); if (iface_data_length != 0x09) { - g_warning ("interface found, but not interface data"); + g_warning ("interface found, but not the correct length for " + "functional data: %" G_GSIZE_FORMAT " bytes", + iface_data_length); return; }