From 509e6459e0462bc34760d1fc87737c7e149ae0af Mon Sep 17 00:00:00 2001 From: pjd Date: Sun, 18 Dec 2011 20:40:19 +0000 Subject: Don't use function name as format string. Detected by: clang MFC after: 1 week --- sbin/hastd/pjdlog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin') diff --git a/sbin/hastd/pjdlog.h b/sbin/hastd/pjdlog.h index 0f01f79..bae431e 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, \ - __func__); \ + "%s", __func__); \ } \ } while (0) #define PJDLOG_RVERIFY(expr, ...) do { \ -- cgit v1.1