]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
dmesg: fix --human color initialization
authorKarel Zak <kzak@redhat.com>
Mon, 1 Jul 2013 09:17:17 +0000 (11:17 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Jul 2013 09:17:17 +0000 (11:17 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/dmesg.c

index 480c8976b498e353bcf9fdd557063231eb294f77..2a28b6b74e82d96f35c892d82cb7a6226584aae2 100644 (file)
@@ -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':