diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:13:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:13:13 +0930 |
commit | 376511ed4defeeeabcfaa83acd230afd4a46b6fd (patch) | |
tree | 645c7363da2368089f947d872f14f98bb6752a00 /lib/util | |
parent | ab61a57e0177ff50a22a8feea38abbf02edfd5da (diff) | |
download | samba-376511ed4defeeeabcfaa83acd230afd4a46b6fd.tar.gz samba-376511ed4defeeeabcfaa83acd230afd4a46b6fd.tar.bz2 samba-376511ed4defeeeabcfaa83acd230afd4a46b6fd.zip |
tdb_compat: adapt to tdb2 API change.
Add the ecode arg to all the log functions, and log it.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/tdb_wrap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util/tdb_wrap.c b/lib/util/tdb_wrap.c index 71aea5e36c..a3dc76d6b7 100644 --- a/lib/util/tdb_wrap.c +++ b/lib/util/tdb_wrap.c @@ -27,6 +27,7 @@ #if BUILD_TDB2 static void tdb_wrap_log(struct tdb_context *tdb, enum tdb_log_level level, + enum TDB_ERROR ecode, const char *message, void *unused) { @@ -45,7 +46,8 @@ static void tdb_wrap_log(struct tdb_context *tdb, dl = 0; } - DEBUG(dl, ("tdb(%s): %s", name ? name : "unnamed", message)); + DEBUG(dl, ("tdb(%s):%s: %s", name ? name : "unnamed", + tdb_errorstr(ecode), message)); } #else /* |