diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-05 15:25:32 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-05 15:25:32 -0700 |
commit | a6e87e90ede66815989ba2db92a07102a69906fe (patch) | |
tree | fb0a5304c033842264760a3efe2b7c869f757131 /src/journal/journal-send.c | |
parent | 04bc4a3f47074d22035831965e97b0990fcf6f63 (diff) |
journalctl: rework JSON output mode
This splits the JSON output mode into different modes: json and
json-pretty. The former printing one entry per line, the latter showing
JSON objects nicely indented and in multiple lines to make it easier to
read for humans.
Diffstat (limited to 'src/journal/journal-send.c')
-rw-r--r-- | src/journal/journal-send.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c index d0f3b725ff..b192f1fb88 100644 --- a/src/journal/journal-send.c +++ b/src/journal/journal-send.c @@ -439,7 +439,7 @@ _public_ int sd_journal_stream_fd(const char *identifier, int priority, int leve memcpy(header, identifier, l); header[l++] = '\n'; - header[l++] = '\n'; + header[l++] = '\n'; /* unit id */ header[l++] = '0' + priority; header[l++] = '\n'; header[l++] = '0' + !!level_prefix; |