summaryrefslogtreecommitdiff
path: root/src/journal/journalctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-27 23:27:10 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-28 00:55:24 +0200
commit08ace05beb1d09b6ebc5e9cafc2b972b39fa2437 (patch)
treebe7290b127df8b2bf4baed5b20659d79527bbc13 /src/journal/journalctl.c
parent8f14c8327b1c2b578bbf1235723a77931c3d0223 (diff)
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.
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r--src/journal/journalctl.c5
1 files changed, 1 insertions, 4 deletions
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;