diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-10-20 08:02:40 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-10-20 00:57:05 +0200 |
commit | 3712006faacbc468d7df3d577c796508e533617c (patch) | |
tree | 5c0fe3e6f1378804d299179355ceb6ee64027c92 /lib/ldb/ldb_map | |
parent | ce45ae122ee7f5f10c003dd5832a43fa1d65804d (diff) | |
download | samba-3712006faacbc468d7df3d577c796508e533617c.tar.gz samba-3712006faacbc468d7df3d577c796508e533617c.tar.bz2 samba-3712006faacbc468d7df3d577c796508e533617c.zip |
dsdb: improve debug message
show the reply type in "Invalid reply type" messages
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Oct 20 00:57:05 CEST 2011 on sn-devel-104
Diffstat (limited to 'lib/ldb/ldb_map')
-rw-r--r-- | lib/ldb/ldb_map/ldb_map_inbound.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ldb/ldb_map/ldb_map_inbound.c b/lib/ldb/ldb_map/ldb_map_inbound.c index b61037222a..38dd5ac066 100644 --- a/lib/ldb/ldb_map/ldb_map_inbound.c +++ b/lib/ldb/ldb_map/ldb_map_inbound.c @@ -309,7 +309,7 @@ static int map_op_local_callback(struct ldb_request *req, } if (ares->type != LDB_REPLY_DONE) { - ldb_set_errstring(ldb, "Invalid reply type!"); + ldb_asprintf_errstring(ldb, "Invalid LDB reply type %d", ares->type); return ldb_module_done(ac->req, NULL, NULL, LDB_ERR_OPERATIONS_ERROR); } @@ -343,7 +343,7 @@ static int map_op_remote_callback(struct ldb_request *req, } if (ares->type != LDB_REPLY_DONE) { - ldb_set_errstring(ldb, "Invalid reply type!"); + ldb_asprintf_errstring(ldb, "Invalid LDB reply type %d", ares->type); return ldb_module_done(ac->req, NULL, NULL, LDB_ERR_OPERATIONS_ERROR); } @@ -802,7 +802,7 @@ static int map_rename_local_callback(struct ldb_request *req, } if (ares->type != LDB_REPLY_DONE) { - ldb_set_errstring(ldb, "Invalid reply type!"); + ldb_asprintf_errstring(ldb, "Invalid LDB reply type %d", ares->type); return ldb_module_done(ac->req, NULL, NULL, LDB_ERR_OPERATIONS_ERROR); } |