diff options
author | Michael Adam <obnox@samba.org> | 2007-07-19 14:22:24 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2007-07-19 14:22:24 +0000 |
commit | d263d14c239e1e8f71af80f9d1be4da8df6ca3cc (patch) | |
tree | 085cbd80e04833cee4f792872f43444dbaf0b8a1 | |
parent | 9392df8873b2ebe9e4eca088bc8977f8c3c521b7 (diff) | |
download | samba-d263d14c239e1e8f71af80f9d1be4da8df6ca3cc.tar.gz samba-d263d14c239e1e8f71af80f9d1be4da8df6ca3cc.tar.xz samba-d263d14c239e1e8f71af80f9d1be4da8df6ca3cc.zip |
r23975: Enhance some debug output.
-rw-r--r-- | source/lib/util_tdb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/lib/util_tdb.c b/source/lib/util_tdb.c index c0933ba415d..cc10e4c9add 100644 --- a/source/lib/util_tdb.c +++ b/source/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; } |