summaryrefslogtreecommitdiff
path: root/usr/src/cmd/svc/svcadm/svcadm.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/svc/svcadm/svcadm.c')
-rw-r--r--usr/src/cmd/svc/svcadm/svcadm.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/usr/src/cmd/svc/svcadm/svcadm.c b/usr/src/cmd/svc/svcadm/svcadm.c
index 7cd61454c9..ac698930d4 100644
--- a/usr/src/cmd/svc/svcadm/svcadm.c
+++ b/usr/src/cmd/svc/svcadm/svcadm.c
@@ -24,7 +24,7 @@
*/
/*
- * Copyright 2013, Joyent, Inc. All rights reserved.
+ * Copyright 2015, Joyent, Inc. All rights reserved.
*/
/*
@@ -71,16 +71,9 @@
*/
#define WAIT_INTERVAL 3
-#ifndef NDEBUG
-#define bad_error(func, err) { \
- pr_warn("%s:%d: %s() failed with unexpected error %d.\n", \
- __FILE__, __LINE__, (func), (err)); \
- abort(); \
-}
-#else
-#define bad_error(func, err) abort()
-#endif
-
+#define bad_error(func, err) \
+ uu_panic("%s:%d: %s() failed with unexpected error %d.\n", \
+ __FILE__, __LINE__, (func), (err));
struct ht_elt {
struct ht_elt *next;