diff options
Diffstat (limited to 'lib/tdb2/test/run-tdb1-rwlock-check.c')
-rw-r--r-- | lib/tdb2/test/run-tdb1-rwlock-check.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/tdb2/test/run-tdb1-rwlock-check.c b/lib/tdb2/test/run-tdb1-rwlock-check.c index f40a6fe13e..ec2a66a5bf 100644 --- a/lib/tdb2/test/run-tdb1-rwlock-check.c +++ b/lib/tdb2/test/run-tdb1-rwlock-check.c @@ -3,10 +3,11 @@ #include <stdlib.h> #include <err.h> -static void log_fn(struct tdb1_context *tdb, enum tdb1_debug_level level, const char *fmt, ...) +static void log_fn(struct tdb1_context *tdb, enum tdb_log_level level, + enum TDB_ERROR ecode, const char *message, void *priv) { - unsigned int *count = tdb->log.log_private; - if (strstr(fmt, "spinlocks")) + unsigned int *count = priv; + if (strstr(message, "spinlocks")) (*count)++; } |