journalctl: do not output --reboot-- markers when running non-interactively
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 26 Sep 2014 14:49:55 +0000 (10:49 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 29 Sep 2014 14:57:27 +0000 (10:57 -0400)
They are not legal in the export format.

src/journal/journalctl.c

index 47206d383a92f560ab9f4fb8839ceaf06739d550..89a922c067290a65e79cf42b1f8b191b74faa866 100644 (file)
@@ -1939,7 +1939,7 @@ int main(int argc, char *argv[]) {
                                         goto finish;
                         }
 
-                        if (!arg_merge) {
+                        if (!arg_merge && !arg_quiet) {
                                 sd_id128_t boot_id;
 
                                 r = sd_journal_get_monotonic_usec(j, NULL, &boot_id);