diff options
author | Bryan Cantrill <bryan@joyent.com> | 2015-11-05 22:52:11 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2017-01-05 10:06:10 -0800 |
commit | 54d02241ceb89d90c765e528622d88f84f65dab3 (patch) | |
tree | e9623f5ecb43d7cf1dd4279b47e700f0371b9b17 /usr/src/cmd/svc/svcs/explain.c | |
parent | 01ed526b57e7c0160dae523eb408e5f8a3240fcb (diff) | |
download | illumos-gate-54d02241ceb89d90c765e528622d88f84f65dab3.tar.gz |
7698 SMF's bad_error() should be implemented in terms of uu_panic()
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr/src/cmd/svc/svcs/explain.c')
-rw-r--r-- | usr/src/cmd/svc/svcs/explain.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/usr/src/cmd/svc/svcs/explain.c b/usr/src/cmd/svc/svcs/explain.c index 42fca80172..533437cbee 100644 --- a/usr/src/cmd/svc/svcs/explain.c +++ b/usr/src/cmd/svc/svcs/explain.c @@ -22,7 +22,7 @@ /* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. - * Copyright (c) 2011, Joyent, Inc. All rights reserved. + * Copyright (c) 2015, Joyent, Inc. All rights reserved. */ /* @@ -112,15 +112,9 @@ #define uu_list_append(lst, e) uu_list_insert_before(lst, NULL, e) -#ifdef NDEBUG -#define bad_error(func, err) abort() -#else #define bad_error(func, err) \ - (void) fprintf(stderr, "%s:%d: %s() failed with unknown error %d.\n", \ - __FILE__, __LINE__, func, err); \ - abort(); -#endif - + uu_panic("%s:%d: %s() failed with unknown error %d.\n", \ + __FILE__, __LINE__, func, err); typedef struct { const char *svcname; |