diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-12-23 11:23:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-12-23 11:28:14 +0100 |
commit | e8bc0ea2b100158bf35c635039226235aa879068 (patch) | |
tree | 112767f16aada7f070cbbba4cf9b33ec69941284 /src/shared/logs-show.c | |
parent | 2d0b0528ace89d378051c280bf3be367b2a7d2de (diff) |
journalctl: strip TABs and ANSI color sequences from log messages when displaying them
Diffstat (limited to 'src/shared/logs-show.c')
-rw-r--r-- | src/shared/logs-show.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index ca5ad43b63..04450a5504 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -179,6 +179,9 @@ static int output_short( if (!message) return 0; + if (!(flags & OUTPUT_SHOW_ALL)) + strip_tab_ansi(&message, &message_len); + if (priority_len == 1 && *priority >= '0' && *priority <= '7') p = *priority - '0'; |