|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
From f4dab44d63124d6753a9c168442f70ab6a745e2c Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
From: Lennart Poettering <lennart@poettering.net>
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Date: Tue, 4 Nov 2014 00:28:33 +0100
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Subject: [PATCH] journal: when dumping log data with missing COMM fields, show
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
"unknown" instead
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
A small readability improvement...
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
(cherry picked from commit 1248e84008028ae54326c565fcc65dcbce3556ad)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
src/shared/logs-show.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
index 04e1165191..e33824be4a 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
--- a/src/shared/logs-show.c
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+++ b/src/shared/logs-show.c
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
@@ -365,7 +365,7 @@ static int output_short(
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
fprintf(f, " %.*s", (int) comm_len, comm);
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
n += comm_len + 1;
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
} else
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
- fputc(' ', f);
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+ fputs(" unknown", f);
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
if (pid && shall_print(pid, pid_len, flags)) {
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
fprintf(f, "[%.*s]", (int) pid_len, pid);
|