[PATCH 10/34] dmesg: inform user --show-delta and iso8601 time format does not mix

Sami Kerola
2013-07-07T19:55:26Z

References: http://marc.info/?l=util-linux-ng&m=137267606929951&w=2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
sys-utils/dmesg.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index 881e3ac..64b1c09 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -1370,6 +1370,9 @@ int main(int argc, char *argv[])
case DMESG_TIMEFTM_TIME:
ctl.time_fmt = DMESG_TIMEFTM_TIME_DELTA;
break;
+ case DMESG_TIMEFTM_ISO8601:
+ warnx(_("--show-delta is ignored when used together with iso8601 time format"));
+ break;
default:
ctl.time_fmt = DMESG_TIMEFTM_DELTA;
}
--
1.8.3.2