summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
authorSami Kerola2013-01-19 01:09:09 +0100
committerKarel Zak2013-01-25 10:29:37 +0100
commitbb9013177c51522f395da122659ed12c336f9167 (patch)
tree1032ec74cbcdcd5c65bea3865a6a245fe7dfffce /sys-utils/dmesg.c
parenttests: add whereis(1) check (diff)
downloadkernel-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>
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r--sys-utils/dmesg.c2
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