From 5962fd53ac446c47d6d2feeb3f1d64a8fc5dd640 Mon Sep 17 00:00:00 2001 From: Enji Cooper 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 --- 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 f87e33b2f937..8bb3b80d5383 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; } }