From 91d53e2b896ed3b1e76c3117a7acb74e4edc921f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mantas=20Mikul=C4=97nas?= Date: Sun, 22 Dec 2013 07:22:46 +0200 Subject: [PATCH] loginctl: fix output of type with class --- src/login/loginctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.30.2