[ofw] [PATCH] [opensm] fix missing option arg handling to be correct.
Smith, Stan
stan.smith at intel.com
Mon Mar 29 11:13:09 PDT 2010
Signed-off-by: stan smith <stan.smith at intel.com>
Revision: 2756
Author: stansmith
Date: 10:35:20 AM, Monday, March 29, 2010
Message:
[opensm] fix missing option arg handling to be correct.
----
Modified : /gen1/trunk/ulp/opensm/user/libvendor/winosm_common.c
--- A/ulp/opensm/user/libvendor/winosm_common.c Mon Mar 29 10:32:40 2010
+++ B/ulp/opensm/user/libvendor/winosm_common.c Fri Mar 26 13:23:04 2010
@@ -256,7 +256,11 @@
chOpt = '?';
if ((longopts[i].has_arg == required_argument) && opterr)
{
- fprintf (stderr, "Option %s requires argument\n",tok);
+ fprintf (stderr,
+ "Option '--%s' requires an argument\n",tok);
+ iArg++;
+ optind++;
+ break;
}
}else
More information about the ofw
mailing list