diff options
author | Sami Kerola | 2013-01-19 01:09:09 +0100 |
---|---|---|
committer | Karel Zak | 2013-01-25 10:29:37 +0100 |
commit | bb9013177c51522f395da122659ed12c336f9167 (patch) | |
tree | 1032ec74cbcdcd5c65bea3865a6a245fe7dfffce | |
parent | tests: add whereis(1) check (diff) | |
download | kernel-qcow2-util-linux-bb9013177c51522f395da122659ed12c336f9167.tar.gz kernel-qcow2-util-linux-bb9013177c51522f395da122659ed12c336f9167.tar.xz kernel-qcow2-util-linux-bb9013177c51522f395da122659ed12c336f9167.zip |
dmesg: parse level when --color is used
When user runs with --color it should not need to be combined with
filtering per level or facility, or decoding.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-rw-r--r-- | sys-utils/dmesg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index ddab9b4ac..080fe7d3e 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -658,7 +658,7 @@ static int get_next_syslog_record(struct dmesg_control *ctl, continue; /* error or empty line? */ if (*begin == '<') { - if (ctl->fltr_lev || ctl->fltr_fac || ctl->decode) + if (ctl->fltr_lev || ctl->fltr_fac || ctl->decode || ctl->color) begin = parse_faclev(begin + 1, &rec->facility, &rec->level); else |