summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/tools/tdbtorture.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/tdb/tools/tdbtorture.c')
-rw-r--r--source4/lib/tdb/tools/tdbtorture.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/tdb/tools/tdbtorture.c b/source4/lib/tdb/tools/tdbtorture.c
index 559a84d99b..d88211c4a7 100644
--- a/source4/lib/tdb/tools/tdbtorture.c
+++ b/source4/lib/tdb/tools/tdbtorture.c
@@ -237,6 +237,9 @@ static void usage(void)
extern char *optarg;
pid_t *pids;
+ struct tdb_logging_context log_ctx;
+ log_ctx.log_fn = tdb_log;
+
while ((c = getopt(argc, argv, "n:l:s:H:h")) != -1) {
switch (c) {
case 'n':
@@ -266,7 +269,7 @@ static void usage(void)
}
db = tdb_open_ex("torture.tdb", hash_size, TDB_CLEAR_IF_FIRST,
- O_RDWR | O_CREAT, 0600, tdb_log, NULL, NULL);
+ O_RDWR | O_CREAT, 0600, &log_ctx, NULL);
if (!db) {
fatal("db open failed");
}