From: Mantas Mikulėnas Date: Sun, 22 Dec 2013 05:22:46 +0000 (+0200) Subject: loginctl: fix output of type with class X-Git-Tag: v209~702 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=91d53e2b896ed3b1e76c3117a7acb74e4edc921f loginctl: fix output of type with class --- diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 914f31699..6900253b0 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);