summaryrefslogtreecommitdiff
path: root/util/ipmi_sample_evt.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/ipmi_sample_evt.c')
-rw-r--r--util/ipmi_sample_evt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/ipmi_sample_evt.c b/util/ipmi_sample_evt.c
index eada5eb..f0f8e97 100644
--- a/util/ipmi_sample_evt.c
+++ b/util/ipmi_sample_evt.c
@@ -328,7 +328,7 @@ main(int argc, char **argv)
fdout = stderr;
printf("%s ver %s\n", progname,progver);
- while ( (c = getopt( argc, argv,"m:s:t:xEF:N:P:R:T:U:V:YZ:?")) != EOF )
+ while ( (c = getopt( argc, argv,"m:p:s:t:xEF:N:P:R:T:U:V:YZ:?")) != EOF )
switch(c) {
case 'm': /* specific IPMB MC, 3-byte address, e.g. "409600" */
g_bus = htoi(&optarg[0]); /*bus/channel*/
@@ -346,6 +346,7 @@ main(int argc, char **argv)
case 's': sdrfile = optarg; break;
case 't': mytag = optarg; break; /* specific sensor tag */
case 'x': fdebug = 1; break; /* debug messages */
+ case 'p': /* port */
case 'N': /* nodename */
case 'U': /* remote username */
case 'P': /* remote password */
@@ -364,7 +365,7 @@ main(int argc, char **argv)
printf(" -m002000 specific MC (bus 00,sa 20,lun 00)\n");
printf(" -s File loads SDRs from File\n");
printf(" -t tag search for 'tag' in SDRs\n");
- print_lan_opt_usage();
+ print_lan_opt_usage(1);
exit(1);
}
/* Rather than parse_lan_options above, the set_lan_options function