[systemd-devel] [PATCH v2] loginctl: fix output of type with class

Mantas Mikulėnas grawity at gmail.com
Sat Dec 21 21:22:46 PST 2013


---
 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 914f316..6900253 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);
 
-- 
1.8.5.1.277.g0e0d235



More information about the systemd-devel mailing list