[openib-general] [PATCH MINOR] opensm: minor usage strings simplification
Sasha Khapyorsky
sashak at voltaire.com
Wed Jan 24 13:11:25 PST 2007
Minor usage string simplification - this helps to avoid warning with some
version of vim c code analyzer.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
osm/opensm/main.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/osm/opensm/main.c b/osm/opensm/main.c
index a63fbeb..0993441 100644
--- a/osm/opensm/main.c
+++ b/osm/opensm/main.c
@@ -217,12 +217,11 @@ show_usage(void)
" SMPs.\n"
" Without -maxsmps, OpenSM defaults to a maximum of\n"
" 4 outstanding SMPs.\n\n" );
+ printf( "-console [off|local"
#ifdef ENABLE_OSM_CONSOLE_SOCKET
- printf( "-console [off|local|socket]\n"
-#else
- printf( "-console [off|local]\n"
+ "|socket"
#endif
- " This option activates the OpenSM console. (default off)\n\n");
+ "]\n This option activates the OpenSM console. (default off)\n\n");
#ifdef ENABLE_OSM_CONSOLE_SOCKET
printf( "-console-port <port>\n"
" Specify an alternate telnet port for the console (default %d).\n\n",
--
1.5.0.rc2.g11a3
More information about the general
mailing list