From 67c32d8809dbc022b13abbb1ee6d616b8df500f6 Mon Sep 17 00:00:00 2001 From: ngie Date: Fri, 16 Jan 2015 21:12:36 +0000 Subject: [PATCH] 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 git-svn-id: svn+ssh://svn.freebsd.org/base/head@277272 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- contrib/ofed/management/opensm/osmtest/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/ofed/management/opensm/osmtest/main.c b/contrib/ofed/management/opensm/osmtest/main.c index f87e33b2f937e9..8bb3b80d5383d1 100644 --- a/contrib/ofed/management/opensm/osmtest/main.c +++ b/contrib/ofed/management/opensm/osmtest/main.c @@ -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; } }