From 712fa475acb802cc12bddf7fe3eafbf15203f1cc Mon Sep 17 00:00:00 2001 From: pjd Date: Mon, 5 Nov 2012 00:38:14 +0000 Subject: Revert r228695. We use __func__ here as a format to distinguish between abort and assert. It would be cleaner to use NULL or "" here, but gcc complains in both cases. --- sbin/hastd/pjdlog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/hastd') diff --git a/sbin/hastd/pjdlog.h b/sbin/hastd/pjdlog.h index bae431e..0f01f79 100644 --- a/sbin/hastd/pjdlog.h +++ b/sbin/hastd/pjdlog.h @@ -95,7 +95,7 @@ void pjdlog_abort(const char *func, const char *file, int line, #define PJDLOG_VERIFY(expr) do { \ if (!(expr)) { \ pjdlog_abort(__func__, __FILE__, __LINE__, #expr, \ - "%s", __func__); \ + __func__); \ } \ } while (0) #define PJDLOG_RVERIFY(expr, ...) do { \ -- cgit v1.1