From d04ebf484c98748e32caa6ce2213bac01db3171d Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Mon, 12 Jan 2009 11:35:03 -0500 Subject: [PATCH] improve output when enumerating actions using --verbose --- src/programs/polkit.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/programs/polkit.c b/src/programs/polkit.c index 126488b..17449cf 100644 --- a/src/programs/polkit.c +++ b/src/programs/polkit.c @@ -203,19 +203,19 @@ print_action (PolkitActionDescription *action) vendor_url = polkit_action_description_get_vendor_url (action); icon = polkit_action_description_get_icon (action); - g_print ("action_id: %s\n", polkit_action_description_get_action_id (action)); - g_print ("description: %s\n", polkit_action_description_get_description (action)); - g_print ("message: %s\n", polkit_action_description_get_message (action)); + g_print ("%s:\n", polkit_action_description_get_action_id (action)); + g_print (" description: %s\n", polkit_action_description_get_description (action)); + g_print (" message: %s\n", polkit_action_description_get_message (action)); if (vendor != NULL) - g_print ("vendor: %s\n", vendor); + g_print (" vendor: %s\n", vendor); if (vendor_url != NULL) - g_print ("vendor_url: %s\n", vendor_url); + g_print (" vendor_url: %s\n", vendor_url); if (icon != NULL) { gchar *s; s = g_icon_to_string (icon); - g_print ("icon: %s\n", s); + g_print (" icon: %s\n", s); g_free (s); } @@ -227,7 +227,7 @@ print_action (PolkitActionDescription *action) key = annotation_keys[n]; value = polkit_action_description_get_annotation (action, key); - g_print ("annotation: %s -> %s\n", key, value); + g_print (" annotation: %s -> %s\n", key, value); } } -- 2.7.4