From 81e8d799f7f6e5c20672e0b1ac2b7712b1294e02 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 3 Mar 2015 15:11:22 +0000 Subject: [PATCH] trivial: Pad out the properties when doing GetDevices --- src/fu-util.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/fu-util.c b/src/fu-util.c index 712e1b66c..0f9cecd90 100644 --- a/src/fu-util.c +++ b/src/fu-util.c @@ -243,6 +243,7 @@ fu_util_get_devices (FuUtilPrivate *priv, gchar **values, GError **error) } else { guint i; guint j; + guint k; const gchar *value; const gchar *keys[] = { FU_DEVICE_KEY_PROVIDER, @@ -254,8 +255,12 @@ fu_util_get_devices (FuUtilPrivate *priv, gchar **values, GError **error) g_print ("Device: %s\n", fu_device_get_id (dev)); for (j = 0; keys[j] != NULL; j++) { value = fu_device_get_metadata (dev, keys[j]); - if (value != NULL) - g_print (" %s:\t%s\n", keys[j], value); + if (value != NULL) { + g_print (" %s:", keys[j]); + for (k = strlen (keys[j]); k < 15; k++) + g_print (" "); + g_print (" %s\n", value); + } } } }