svn commit: r277272 - head/contrib/ofed/management/opensm/osmtest
Garrett Cooper
ngie at FreeBSD.org
Fri Jan 16 21:12:37 UTC 2015
Author: ngie
Date: Fri Jan 16 21:12:36 2015
New Revision: 277272
URL: https://svnweb.freebsd.org/changeset/base/277272
Log:
Don't call abort on usage errors; print out the usage message instead
PR: 196793
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
Modified:
head/contrib/ofed/management/opensm/osmtest/main.c
Modified: head/contrib/ofed/management/opensm/osmtest/main.c
==============================================================================
--- head/contrib/ofed/management/opensm/osmtest/main.c Fri Jan 16 21:08:04 2015 (r277271)
+++ head/contrib/ofed/management/opensm/osmtest/main.c Fri Jan 16 21:12:36 2015 (r277272)
@@ -565,8 +565,9 @@ int main(int argc, char *argv[])
printf("Done with args\n");
break;
- default: /* something wrong */
- abort();
+ default:
+ show_usage();
+ return 1;
}
}
More information about the svn-src-head
mailing list