summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
authorSami Kerola2016-04-16 19:35:02 +0200
committerSami Kerola2016-04-17 00:09:26 +0200
commitfdba1750fc9404206b900fac1dfc37772103b022 (patch)
treef6eaafc0f1d10fccecb0cbda7327c884902c4cd6 /sys-utils/dmesg.c
parentscript: check status of writes when closing outputs (diff)
downloadkernel-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.c1
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;