chiark / gitweb /
loginctl: fix output of type with class
[elogind.git] / src / login / loginctl.c
index 914f3169989551dd8c54de0ef6537b2efca7b6fd..6900253b0d47a9a1ace0be8254f2e8ba4f46277d 100644 (file)
@@ -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);