mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-17 08:49:12 +00:00
trivial: Pad out the properties when doing GetDevices
This commit is contained in:
parent
67ec898265
commit
81e8d799f7
@ -243,6 +243,7 @@ fu_util_get_devices (FuUtilPrivate *priv, gchar **values, GError **error)
|
|||||||
} else {
|
} else {
|
||||||
guint i;
|
guint i;
|
||||||
guint j;
|
guint j;
|
||||||
|
guint k;
|
||||||
const gchar *value;
|
const gchar *value;
|
||||||
const gchar *keys[] = {
|
const gchar *keys[] = {
|
||||||
FU_DEVICE_KEY_PROVIDER,
|
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));
|
g_print ("Device: %s\n", fu_device_get_id (dev));
|
||||||
for (j = 0; keys[j] != NULL; j++) {
|
for (j = 0; keys[j] != NULL; j++) {
|
||||||
value = fu_device_get_metadata (dev, keys[j]);
|
value = fu_device_get_metadata (dev, keys[j]);
|
||||||
if (value != NULL)
|
if (value != NULL) {
|
||||||
g_print (" %s:\t%s\n", keys[j], value);
|
g_print (" %s:", keys[j]);
|
||||||
|
for (k = strlen (keys[j]); k < 15; k++)
|
||||||
|
g_print (" ");
|
||||||
|
g_print (" %s\n", value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user