diff --git a/contrib/ofed/management/opensm/osmtest/main.c b/contrib/ofed/management/opensm/osmtest/main.c index f87e33b2f93..8bb3b80d538 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; } }