From: David Zeuthen Date: Mon, 12 Jan 2009 16:35:03 +0000 (-0500) Subject: improve output when enumerating actions using --verbose X-Git-Tag: 0.91~48^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d04ebf484c98748e32caa6ce2213bac01db3171d;p=platform%2Fupstream%2Fpolkit.git improve output when enumerating actions using --verbose --- 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); } }