From: Francois-Xavier Le Bail Date: Mon, 29 Oct 2018 15:31:19 +0000 (+0100) Subject: Add an usage message for the -m option X-Git-Tag: tcpdump-4.99-bp~977 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/6bb2b97b4cc6b0324c4209f9fcd8859bf7582952 Add an usage message for the -m option Moreover: Fix a space. --- diff --git a/tcpdump.c b/tcpdump.c index 3b4d84f9..d17a572b 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -624,6 +624,10 @@ show_remote_devices_and_exit(void) #define J_FLAG #endif /* PCAP_ERROR_TSTAMP_TYPE_NOTSUP */ +#ifdef USE_LIBSMI +#define m_FLAG_USAGE "[ -m module ] ..." +#endif + #ifdef HAVE_PCAP_SETDIRECTION #define Q_FLAG "Q:" #define Q_FLAG_USAGE " [ -Q in|out|inout ]" @@ -713,7 +717,7 @@ static const struct option longopts[] = { }; #ifdef HAVE_PCAP_FINDALLDEVS_EX -#define LIST_REMOTE_INTERFACES_USAGE "[ --list-remote-interfaces remote-source ]" +#define LIST_REMOTE_INTERFACES_USAGE "[ --list-remote-interfaces remote-source ]" #else #define LIST_REMOTE_INTERFACES_USAGE #endif @@ -3059,6 +3063,10 @@ print_usage(void) #ifdef HAVE_PCAP_FINDALLDEVS_EX (void)fprintf(stderr, "\t\t" LIST_REMOTE_INTERFACES_USAGE "\n"); +#endif +#ifdef USE_LIBSMI + (void)fprintf(stderr, +"\t\t" m_FLAG_USAGE "\n"); #endif (void)fprintf(stderr, "\t\t[ -M secret ] [ --number ] [ --print ]" Q_FLAG_USAGE "\n");