diff options
Diffstat (limited to 'lib/tdb2/test/run-tdb1-wronghash-fail.c')
-rw-r--r-- | lib/tdb2/test/run-tdb1-wronghash-fail.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/tdb2/test/run-tdb1-wronghash-fail.c b/lib/tdb2/test/run-tdb1-wronghash-fail.c index 15047677a2c..59bfbbeccb0 100644 --- a/lib/tdb2/test/run-tdb1-wronghash-fail.c +++ b/lib/tdb2/test/run-tdb1-wronghash-fail.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, "hash")) + unsigned int *count = priv; + if (strstr(message, "hash")) (*count)++; } |