svn commit: r277636 - stable/9/contrib/ofed/management/opensm/osmtest

Garrett Cooper ngie at FreeBSD.org
Sat Jan 24 03:04:09 UTC 2015


Author: ngie
Date: Sat Jan 24 03:04:08 2015
New Revision: 277636
URL: https://svnweb.freebsd.org/changeset/base/277636

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

Modified:
  stable/9/contrib/ofed/management/opensm/osmtest/main.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/contrib/   (props changed)

Modified: stable/9/contrib/ofed/management/opensm/osmtest/main.c
==============================================================================
--- stable/9/contrib/ofed/management/opensm/osmtest/main.c	Sat Jan 24 02:16:53 2015	(r277635)
+++ stable/9/contrib/ofed/management/opensm/osmtest/main.c	Sat Jan 24 03:04:08 2015	(r277636)
@@ -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-all mailing list