diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-03-14 13:08:58 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-03-14 05:09:30 +0100 |
commit | ee0d1daa279049a1b38b1ef4b3a1b29b1344b212 (patch) | |
tree | 4c1e82c9bd073919e8fdee56da9edd697adb6ae7 /lib/tdb2 | |
parent | 2d35fd7259bb8ad9a4a6a0c0b8d7a4f1cdf78c12 (diff) | |
download | samba-ee0d1daa279049a1b38b1ef4b3a1b29b1344b212.tar.gz samba-ee0d1daa279049a1b38b1ef4b3a1b29b1344b212.tar.bz2 samba-ee0d1daa279049a1b38b1ef4b3a1b29b1344b212.zip |
lib/tdb2: Add gcc-style format attribute to tdb_logerr.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb2')
-rw-r--r-- | lib/tdb2/private.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h index 31790bc335..04a433be38 100644 --- a/lib/tdb2/private.h +++ b/lib/tdb2/private.h @@ -740,10 +740,11 @@ TDB_DATA tdb1_firstkey(struct tdb_context *tdb); TDB_DATA tdb1_nextkey(struct tdb_context *tdb, TDB_DATA key); /* tdb.c: */ -enum TDB_ERROR COLD tdb_logerr(struct tdb_context *tdb, - enum TDB_ERROR ecode, - enum tdb_log_level level, - const char *fmt, ...); +enum TDB_ERROR COLD PRINTF_FMT(4, 5) + tdb_logerr(struct tdb_context *tdb, + enum TDB_ERROR ecode, + enum tdb_log_level level, + const char *fmt, ...); #ifdef TDB_TRACE void tdb_trace(struct tdb_context *tdb, const char *op); |