diff options
author | Michael Adam <obnox@samba.org> | 2007-07-19 14:22:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:28:51 -0500 |
commit | 6a16ad09cb499476954a17dd617c0793b7ea118a (patch) | |
tree | 752f5f94e85ceb8a12efcf87ac109cc7febd2f1b /source3 | |
parent | 9a97fb7ff393be213b971bca5ed6fda930ac96ea (diff) | |
download | samba-6a16ad09cb499476954a17dd617c0793b7ea118a.tar.gz samba-6a16ad09cb499476954a17dd617c0793b7ea118a.tar.bz2 samba-6a16ad09cb499476954a17dd617c0793b7ea118a.zip |
r23975: Enhance some debug output.
(This used to be commit 909172839a512b60db075fb1a7488345a2e48eb0)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_tdb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c index c0933ba415..cc10e4c9ad 100644 --- a/source3/lib/util_tdb.c +++ b/source3/lib/util_tdb.c @@ -1145,7 +1145,8 @@ static int traverse_copy_fn(struct tdb_context *tdb, TDB_DATA key, struct tdb_copy_data *data = (struct tdb_copy_data *)private_data; if (tdb_store(data->dst, key, dbuf, TDB_INSERT) != 0) { - DEBUG(4, ("Failed to insert into %s\n", tdb_name(data->dst))); + DEBUG(4, ("Failed to insert into %s: %s\n", tdb_name(data->dst), + strerror(errno))); data->success = False; return 1; } @@ -1217,7 +1218,8 @@ static int tdb_backup(TALLOC_CTX *ctx, const char *src_path, count1 = tdb_copy(src_tdb, dst_tdb); if (count1 < 0) { - DEBUG(3, ("Failed to copy tdb '%s'\n", src_path)); + DEBUG(3, ("Failed to copy tdb '%s': %s\n", src_path, + strerror(errno))); tdb_close(dst_tdb); goto done; } |