summaryrefslogtreecommitdiff
path: root/source3/smbd/connection.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-11-30 15:55:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:28 -0500
commit5f67f0125831b2a70605b2661585311633b244aa (patch)
tree170f6580b499d5a464cf04843360c593675aa2ce /source3/smbd/connection.c
parent2fffc40b1ddcd8a89160db877bd868f6e7fa8b72 (diff)
downloadsamba-5f67f0125831b2a70605b2661585311633b244aa.tar.gz
samba-5f67f0125831b2a70605b2661585311633b244aa.tar.bz2
samba-5f67f0125831b2a70605b2661585311633b244aa.zip
r4019: better error logging in register_message_flags() from Rob
(This used to be commit 5fc0f838e7ec8b29d7987caafe9ffbb8724a3176)
Diffstat (limited to 'source3/smbd/connection.c')
-rw-r--r--source3/smbd/connection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c
index fc5fe9d741..32e2f058fc 100644
--- a/source3/smbd/connection.c
+++ b/source3/smbd/connection.c
@@ -217,7 +217,8 @@ BOOL register_message_flags(BOOL doreg, uint32 msg_flags)
dbuf = tdb_fetch(tdb, kbuf);
if (!dbuf.dptr) {
- DEBUG(0,("register_message_flags: tdb_fetch failed\n"));
+ DEBUG(0,("register_message_flags: tdb_fetch failed: %s\n",
+ tdb_errorstr(tdb)));
return False;
}
@@ -228,7 +229,7 @@ BOOL register_message_flags(BOOL doreg, uint32 msg_flags)
pcrec->bcast_msg_flags &= ~msg_flags;
if (tdb_store(tdb, kbuf, dbuf, TDB_REPLACE) != 0) {
- DEBUG(0,("register_message_flags: tdb_store failed with error %s.\n",
+ DEBUG(0,("register_message_flags: tdb_store failed: %s.\n",
tdb_errorstr(tdb) ));
SAFE_FREE(dbuf.dptr);
return False;