trivial: Pad out the properties when doing GetDevices

This commit is contained in:
Richard Hughes 2015-03-03 15:11:22 +00:00
parent 67ec898265
commit 81e8d799f7

View File

@ -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);
}
}
}
}