From 08ace05beb1d09b6ebc5e9cafc2b972b39fa2437 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 27 Sep 2012 23:27:10 +0200 Subject: logs-show: various cleanups Among other cleanups this introduces a threshold for the size of binary blobs we serialize as integer arrays in the JSON output. THis can be disabled via --all. --- src/journal/journalctl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/journal') diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index bac8729494..cbf9833184 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -730,7 +730,6 @@ static int verify(sd_journal *j) { int main(int argc, char *argv[]) { int r; sd_journal *j = NULL; - unsigned line = 0; bool need_seek = false; sd_id128_t previous_boot_id; bool previous_boot_id_valid = false; @@ -904,9 +903,7 @@ int main(int argc, char *argv[]) { } } - line ++; - - r = output_journal(j, arg_output, line, 0, flags); + r = output_journal(stdout, j, arg_output, 0, flags); if (r < 0) goto finish; -- cgit v1.2.3-54-g00ecf