svn commit: r277366 - projects/stable-10-opts-mk/contrib/ofed/management/opensm/osmtest

Garrett Cooper ngie at FreeBSD.org
Mon Jan 19 07:14:37 UTC 2015


Author: ngie
Date: Mon Jan 19 07:14:36 2015
New Revision: 277366
URL: https://svnweb.freebsd.org/changeset/base/277366

Log:
  MFC r277272:
  
  r277272 (by ngie):
  
    Don't call abort on usage errors; print out the usage message instead
  
    PR: 196793
    Sponsored by: EMC / Isilon Storage Division

Modified:
  projects/stable-10-opts-mk/contrib/ofed/management/opensm/osmtest/main.c
Directory Properties:
  projects/stable-10-opts-mk/   (props changed)

Modified: projects/stable-10-opts-mk/contrib/ofed/management/opensm/osmtest/main.c
==============================================================================
--- projects/stable-10-opts-mk/contrib/ofed/management/opensm/osmtest/main.c	Mon Jan 19 07:10:08 2015	(r277365)
+++ projects/stable-10-opts-mk/contrib/ofed/management/opensm/osmtest/main.c	Mon Jan 19 07:14:36 2015	(r277366)
@@ -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-projects mailing list