summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/pjdlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/hastd/pjdlog.h')
-rw-r--r--sbin/hastd/pjdlog.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/hastd/pjdlog.h b/sbin/hastd/pjdlog.h
index 2e80e81..0f01f79 100644
--- a/sbin/hastd/pjdlog.h
+++ b/sbin/hastd/pjdlog.h
@@ -89,22 +89,22 @@ void pjdlogv_exit(int exitcode, const char *fmt, va_list ap) __printflike(2, 0)
void pjdlog_exitx(int exitcode, const char *fmt, ...) __printflike(2, 3) __dead2;
void pjdlogv_exitx(int exitcode, const char *fmt, va_list ap) __printflike(2, 0) __dead2;
-void pjdlog_verify(const char *func, const char *file, int line,
- const char *failedexpr, const char *fmt, ...) __printflike(5, 6);
+void pjdlog_abort(const char *func, const char *file, int line,
+ const char *failedexpr, const char *fmt, ...) __printflike(5, 6) __dead2;
#define PJDLOG_VERIFY(expr) do { \
if (!(expr)) { \
- pjdlog_verify(__func__, __FILE__, __LINE__, #expr, \
+ pjdlog_abort(__func__, __FILE__, __LINE__, #expr, \
__func__); \
} \
} while (0)
#define PJDLOG_RVERIFY(expr, ...) do { \
if (!(expr)) { \
- pjdlog_verify(__func__, __FILE__, __LINE__, #expr, \
+ pjdlog_abort(__func__, __FILE__, __LINE__, #expr, \
__VA_ARGS__); \
} \
} while (0)
-#define PJDLOG_ABORT(...) pjdlog_verify(__func__, __FILE__, \
+#define PJDLOG_ABORT(...) pjdlog_abort(__func__, __FILE__, \
__LINE__, NULL, __VA_ARGS__)
#ifdef NDEBUG
#define PJDLOG_ASSERT(expr) do { } while (0)
OpenPOWER on IntegriCloud