svn commit: r277369 - stable/10/contrib/ofed/management/opensm/osmtest

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


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

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:
  stable/10/contrib/ofed/management/opensm/osmtest/main.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/ofed/management/opensm/osmtest/main.c
==============================================================================
--- stable/10/contrib/ofed/management/opensm/osmtest/main.c	Mon Jan 19 07:18:59 2015	(r277368)
+++ stable/10/contrib/ofed/management/opensm/osmtest/main.c	Mon Jan 19 07:19:56 2015	(r277369)
@@ -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-stable-10 mailing list