Created attachment 151719 [details] patch This is not very user friendly behavior: $ /usr/tests/usr.bin/opensm/osmtest --version Command Line Arguments osmtest: unrecognized option `--version' Abort trap (core dumped) The attached patch fixes that. Sponsored by: EMC / Isilon Storage Division
I'll commit this change to head soon.
Don't forget to add "MFC after". Patch looks good. --HPS
A commit references this bug: Author: ngie Date: Fri Jan 16 21:12:37 UTC 2015 New revision: 277272 URL: https://svnweb.freebsd.org/changeset/base/277272 Log: 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 Changes: head/contrib/ofed/management/opensm/osmtest/main.c
A commit references this bug: Author: ngie Date: Mon Jan 19 07:14:37 UTC 2015 New revision: 277366 URL: https://svnweb.freebsd.org/changeset/base/277366 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 Changes: _U projects/stable-10-opts-mk/ projects/stable-10-opts-mk/contrib/ofed/management/opensm/osmtest/main.c
A commit references this bug: Author: ngie Date: Mon Jan 19 07:19:57 UTC 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 Changes: _U stable/10/ stable/10/contrib/ofed/management/opensm/osmtest/main.c
A commit references this bug: Author: ngie Date: Sat Jan 24 03:04:09 UTC 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 Changes: _U stable/9/ _U stable/9/contrib/ stable/9/contrib/ofed/management/opensm/osmtest/main.c