summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_perfcount.c2
-rw-r--r--source3/tdb/tdbutil.c8
2 files changed, 9 insertions, 1 deletions
diff --git a/source3/registry/reg_perfcount.c b/source3/registry/reg_perfcount.c
index 7f9e9ad662..385128e7b5 100644
--- a/source3/registry/reg_perfcount.c
+++ b/source3/registry/reg_perfcount.c
@@ -172,7 +172,7 @@ static uint32 _reg_perfcount_multi_sz_from_tdb(TDB_CONTEXT *tdb,
/* If a key isn't there, just bypass it -- this really shouldn't
happen unless someone's mucking around with the tdb */
DEBUG(3, ("_reg_perfcount_multi_sz_from_tdb: failed to find key [%s] in [%s].\n",
- temp, tdb->name));
+ temp, tdb_name(tdb)));
return buffer_size;
}
/* First encode the name_index */
diff --git a/source3/tdb/tdbutil.c b/source3/tdb/tdbutil.c
index f1809229f8..fc45fa9360 100644
--- a/source3/tdb/tdbutil.c
+++ b/source3/tdb/tdbutil.c
@@ -805,6 +805,14 @@ TDB_CONTEXT *tdb_open_log(const char *name, int hash_size, int tdb_flags,
return tdb;
}
+/****************************************************************************
+ return the name of the current tdb file useful for external logging
+ functions
+****************************************************************************/
+const char *tdb_name(struct tdb_context *tdb)
+{
+ return tdb->name;
+}
/****************************************************************************
Allow tdb_delete to be used as a tdb_traversal_fn.