chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
082694b
)
logs-show: fix output of log lines lacking comm
author
Lennart Poettering
<lennart@poettering.net>
Tue, 10 Apr 2012 22:34:06 +0000
(
00:34
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 10 Apr 2012 22:34:06 +0000
(
00:34
+0200)
src/logs-show.c
patch
|
blob
|
history
diff --git
a/src/logs-show.c
b/src/logs-show.c
index a6220351b65c73403271a4abc8c86a52b1e37138..42d84edbafd43eb5c7b3b5224d3d34a1acba109d 100644
(file)
--- a/
src/logs-show.c
+++ b/
src/logs-show.c
@@
-213,7
+213,8
@@
static int output_short(sd_journal *j, unsigned line, unsigned n_columns, bool s
} else if (comm && shall_print(show_all, comm, comm_len)) {
printf(" %.*s", (int) comm_len, comm);
n += comm_len + 1;
- }
+ } else
+ putchar(' ');
if (pid && shall_print(show_all, pid, pid_len)) {
printf("[%.*s]", (int) pid_len, pid);