]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: event: add the missing time display format in the "iw event" help menu
authorGokul Sivakumar <gokulkumar792@gmail.com>
Fri, 10 Sep 2021 14:16:17 +0000 (19:46 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 Sep 2021 11:34:55 +0000 (13:34 +0200)
The option used to print the events with timestamp in Human readable format
is not listed in the "$ iw event -h" output.

 $ ./iw event -h
 Usage:  ./iw [options] event [-t|-r] [-f] [-n]
 ...

So add "-T" option to the help menu.

 $ ./iw event -h
 Usage:  ./iw [options] event [-t|-T|-r] [-f] [-n]
 ...

Signed-off-by: Gokul Sivakumar <gokulkumar792@gmail.com>
Link: https://lore.kernel.org/r/20210910141618.1594617-3-gokulkumar792@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
event.c

diff --git a/event.c b/event.c
index 14f101b355f05f0f89010d24be7b44d5213d1b5f..e0908dd5b5242a4d9a2fd244952d4a0d42cc44fb 100644 (file)
--- a/event.c
+++ b/event.c
@@ -1457,7 +1457,7 @@ static int print_events(struct nl80211_state *state,
 
        return __do_listen_events(state, 0, NULL, 0, NULL, &args);
 }
-TOPLEVEL(event, "[-t|-r] [-f]", 0, 0, CIB_NONE, print_events,
+TOPLEVEL(event, "[-t|-T|-r] [-f]", 0, 0, CIB_NONE, print_events,
        "Monitor events from the kernel.\n"
        "-t - print timestamp\n"
        "-T - print absolute, human-readable timestamp\n"