diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-02-15 17:20:46 -0500 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2007-02-15 17:20:46 -0500 |
commit | 51ff0be15b7bd4a48fd07ada4822f07ddc028af0 (patch) | |
tree | 499873529b6a084e33d825386a0af7c455501b0e | |
parent | 497cc86462934168ab8cd379ab1130d4ef5d039b (diff) |
split list-sessions output onto separate lines
It was getting impossible to read all on one line.
-rw-r--r-- | tools/list-sessions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/list-sessions.c b/tools/list-sessions.c index e386b15..fd37cf3 100644 --- a/tools/list-sessions.c +++ b/tools/list-sessions.c @@ -212,10 +212,10 @@ list_session (DBusGConnection *connection, short_ssid = ssid + strlen (CK_PATH) + 1; } - printf ("uid='%d' realname='%s' seat='%s' session='%s' session-type='%s' active=%s x11-display='%s' display-device='%s' host-name='%s' is-local=%s on-since='%s'", - uid, realname, short_sid, short_ssid, session_type, is_active ? "TRUE" : "FALSE", xdisplay, display_device, host_name, is_local ? "TRUE" : "FALSE", creation_time); + printf ("%s:\n\tuid = '%d'\n\trealname = '%s'\n\tseat = '%s'\n\tsession-type = '%s'\n\tactive = %s\n\tx11-display = '%s'\n\tdisplay-device = '%s'\n\thost-name = '%s'\n\tis-local = %s\n\ton-since = '%s'", + short_ssid, uid, realname, short_sid, session_type, is_active ? "TRUE" : "FALSE", xdisplay, display_device, host_name, is_local ? "TRUE" : "FALSE", creation_time); if (idle_since != NULL && idle_since[0] != '\0') { - printf (" idle-since='%s'", idle_since); + printf ("\n\tidle-since = '%s'", idle_since); } printf ("\n"); |