chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logs-show: fix missing newline in short output
[elogind.git]
/
src
/
logs-show.c
diff --git
a/src/logs-show.c
b/src/logs-show.c
index cb18da2aa5ae21ee61cf29cb491fa928706e7c31..8d728a66de12aa7eaa81353420e695903e6098c1 100644
(file)
--- a/
src/logs-show.c
+++ b/
src/logs-show.c
@@
-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;
uint64_t x;
time_t t;
struct tm tm;
+
r = -ENOENT;
if (realtime)
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
if (!e)
printf(": %.*s\n", (int) message_len, message);
else
- printf(": %s", e);
+ printf(": %s
\n
", e);
free(e);
} else
free(e);
} else