summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r--sys-utils/dmesg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index 3ed0b1db7..c1f84a568 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -1187,7 +1187,7 @@ int main(int argc, char *argv[])
.kmsg = -1,
.time_fmt = DMESG_TIMEFTM_TIME,
};
- int colormode = UL_COLORMODE_NEVER;
+ int colormode = UL_COLORMODE_UNDEF;
enum {
OPT_TIME_FORMAT = CHAR_MAX + 1,
};
@@ -1377,7 +1377,7 @@ int main(int argc, char *argv[])
}
- ctl.color = colors_init(colormode) ? 1 : 0;
+ ctl.color = colors_init(colormode, "dmesg") ? 1 : 0;
if (ctl.follow)
nopager = 1;
ctl.pager = nopager ? 0 : ctl.pager;