From c0804c5bfbfa110621d88df69dd30e9c2993b6e4 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 24 Aug 2016 10:05:01 +0100 Subject: [PATCH] trivial: Print the device name in the dfu-tool list output --- libdfu/dfu-tool.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libdfu/dfu-tool.c b/libdfu/dfu-tool.c index 50bd058a4..7ff22988f 100644 --- a/libdfu/dfu-tool.c +++ b/libdfu/dfu-tool.c @@ -1857,6 +1857,12 @@ dfu_tool_list (DfuToolPrivate *priv, gchar **values, GError **error) continue; } + tmp = dfu_device_get_display_name (device); + if (tmp != NULL) { + /* TRANSLATORS: device name, e.g. 'ColorHug2' */ + dfu_tool_print_indent (_("Name"), tmp, 1); + } + tmp = dfu_mode_to_string (dfu_device_get_mode (device)); /* TRANSLATORS: device mode, e.g. runtime or DFU */ dfu_tool_print_indent (_("Mode"), tmp, 1);