diff options
author | Mantas MikulÄ—nas <grawity@gmail.com> | 2013-12-22 07:22:46 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-22 19:12:57 -0500 |
commit | 91d53e2b896ed3b1e76c3117a7acb74e4edc921f (patch) | |
tree | b0ffe2581f011dbca4a19be4c72dcac6185a1152 | |
parent | d4fffc4b8beb86e77fd710c1f43913a490ed083a (diff) |
loginctl: fix output of type with class
-rw-r--r-- | src/login/loginctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 914f316998..6900253b0d 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -453,10 +453,12 @@ static int print_session_status_info(sd_bus *bus, const char *path, bool *new_li printf("\n"); } else if (i.type) { - printf("\t Type: %s\n", i.type); + printf("\t Type: %s", i.type); if (i.class) printf("; class %s", i.class); + + printf("\n"); } else if (i.class) printf("\t Class: %s\n", i.class); |