summaryrefslogtreecommitdiff
path: root/lib/tdb2/tools/tdb2torture.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tdb2/tools/tdb2torture.c')
-rw-r--r--lib/tdb2/tools/tdb2torture.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/tdb2/tools/tdb2torture.c b/lib/tdb2/tools/tdb2torture.c
index f6a7a5064a..c2a4eaa0fb 100644
--- a/lib/tdb2/tools/tdb2torture.c
+++ b/lib/tdb2/tools/tdb2torture.c
@@ -42,10 +42,14 @@ static int count_pipe;
static union tdb_attribute log_attr;
static union tdb_attribute seed_attr;
-static void tdb_log(struct tdb_context *tdb, enum tdb_log_level level,
- const char *message, void *data)
+static void tdb_log(struct tdb_context *tdb,
+ enum tdb_log_level level,
+ enum TDB_ERROR ecode,
+ const char *message,
+ void *data)
{
- fputs(message, stdout);
+ printf("tdb:%s:%s:%s\n",
+ tdb_name(tdb), tdb_errorstr(ecode), message);
fflush(stdout);
#if 0
{