]> err.no Git - systemd/commitdiff
logs-show: fix missing newline in short output
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 10 Jan 2012 21:03:49 +0000 (22:03 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Wed, 11 Jan 2012 20:53:00 +0000 (21:53 +0100)
Ellipsized messages were printed without a newline.

src/logs-show.c

index 2fe205fea6a7b9acb24b11ac270954f804089aa8..8d728a66de12aa7eaa81353420e695903e6098c1 100644 (file)
@@ -237,7 +237,7 @@ static int output_short(sd_journal *j, unsigned line, bool show_all, bool monoto
                 if (!e)
                         printf(": %.*s\n", (int) message_len, message);
                 else
-                        printf(": %s", e);
+                        printf(": %s\n", e);
 
                 free(e);
         } else