]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
dmesg: --notime should not suppress --show-delta
authorSami Kerola <kerolasa@iki.fi>
Sat, 16 Apr 2016 17:35:02 +0000 (18:35 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 16 Apr 2016 22:09:26 +0000 (23:09 +0100)
The --show-delta is off by default, which means it can be only on when user
has requested to see these time stamps.  The --notime option should not turn
the delta outputing off, because then option order matters and no-one wants
that.  Example of the old output:

$ dmesg --notime --show-delta | sed -n 's/ version.*//p; q'
[<    0.000000>] Linux
$ dmesg --show-delta --notime | sed -n 's/ version.*//p; q'
Linux

Addresses: https://bugs.launchpad.net/bugs/1544595
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/dmesg.c

index 99cf26e37e92d657f635626866670f5a4fa1b501..cf93331418f681679361ceda0f82ff3bd5d68457 100644 (file)
@@ -1363,7 +1363,6 @@ int main(int argc, char *argv[])
                        break;
                case 't':
                        ctl.time_fmt = DMESG_TIMEFTM_NONE;
-                       delta = 0;
                        break;
                case 'u':
                        ctl.fltr_fac = 1;