summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-12-18 20:40:19 +0000
committerpjd <pjd@FreeBSD.org>2011-12-18 20:40:19 +0000
commit509e6459e0462bc34760d1fc87737c7e149ae0af (patch)
treedaa52c0a0a2dc8a7226af1a87106c41749498e9e /sbin
parentdc82ddf5204d572d72e326d3e742e76b42fff1a1 (diff)
downloadFreeBSD-src-509e6459e0462bc34760d1fc87737c7e149ae0af.zip
FreeBSD-src-509e6459e0462bc34760d1fc87737c7e149ae0af.tar.gz
Don't use function name as format string.
Detected by: clang MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r--sbin/hastd/pjdlog.h2
1 files changed, 1 insertions, 1 deletions
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 { \
OpenPOWER on IntegriCloud