diff options
author | pjd <pjd@FreeBSD.org> | 2011-12-18 20:40:19 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-12-18 20:40:19 +0000 |
commit | 509e6459e0462bc34760d1fc87737c7e149ae0af (patch) | |
tree | daa52c0a0a2dc8a7226af1a87106c41749498e9e /sbin | |
parent | dc82ddf5204d572d72e326d3e742e76b42fff1a1 (diff) | |
download | FreeBSD-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.h | 2 |
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 { \ |