summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
authorKarel Zak2013-07-01 11:17:17 +0200
committerKarel Zak2013-07-01 11:17:17 +0200
commit81bd88e4f30b652a005b20c2194aea55cc27df4a (patch)
treed9ddd1a2513351eff4b9bb141348e2e07200cfc1 /sys-utils/dmesg.c
parentsfdisk: clean up unhide code (diff)
downloadkernel-qcow2-util-linux-81bd88e4f30b652a005b20c2194aea55cc27df4a.tar.gz
kernel-qcow2-util-linux-81bd88e4f30b652a005b20c2194aea55cc27df4a.tar.xz
kernel-qcow2-util-linux-81bd88e4f30b652a005b20c2194aea55cc27df4a.zip
dmesg: fix --human color initialization
Signed-off-by: Karel Zak <kzak@redhat.com>
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 480c8976b..2a28b6b74 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -1258,7 +1258,7 @@ int main(int argc, char *argv[])
break;
case 'H':
ctl.time_fmt = DMESG_TIMEFTM_RELTIME;
- ctl.color = 1;
+ colormode = UL_COLORMODE_AUTO;
ctl.pager = 1;
break;
case 'h':