mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 06:25:25 +03:00
journal: when dumping log data with missing COMM fields, show "unknown" instead
A small readability improvement...
This commit is contained in:
parent
5034c7bcdf
commit
1248e84008
@ -365,7 +365,7 @@ static int output_short(
|
||||
fprintf(f, " %.*s", (int) comm_len, comm);
|
||||
n += comm_len + 1;
|
||||
} else
|
||||
fputc(' ', f);
|
||||
fputs(" unknown", f);
|
||||
|
||||
if (pid && shall_print(pid, pid_len, flags)) {
|
||||
fprintf(f, "[%.*s]", (int) pid_len, pid);
|
||||
|
Loading…
Reference in New Issue
Block a user