chiark / gitweb /
logs-show: fix missing newline in short output
[elogind.git] / src / logs-show.c
index cb18da2aa5ae21ee61cf29cb491fa928706e7c31..8d728a66de12aa7eaa81353420e695903e6098c1 100644 (file)
@@ -178,6 +178,7 @@ static int output_short(sd_journal *j, unsigned line, bool show_all, bool monoto
                 uint64_t x;
                 time_t t;
                 struct tm tm;
+
                 r = -ENOENT;
 
                 if (realtime)
@@ -236,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