diff options
author | Sami Kerola | 2016-04-16 19:35:02 +0200 |
---|---|---|
committer | Sami Kerola | 2016-04-17 00:09:26 +0200 |
commit | fdba1750fc9404206b900fac1dfc37772103b022 (patch) | |
tree | f6eaafc0f1d10fccecb0cbda7327c884902c4cd6 /sys-utils/dmesg.c | |
parent | script: check status of writes when closing outputs (diff) | |
download | kernel-qcow2-util-linux-fdba1750fc9404206b900fac1dfc37772103b022.tar.gz kernel-qcow2-util-linux-fdba1750fc9404206b900fac1dfc37772103b022.tar.xz kernel-qcow2-util-linux-fdba1750fc9404206b900fac1dfc37772103b022.zip |
dmesg: --notime should not suppress --show-delta
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>
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r-- | sys-utils/dmesg.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index 99cf26e37..cf9333141 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -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; |