svn commit: samba r4019 - in branches/SAMBA_3_0/source/smbd: .

jerry at samba.org jerry at samba.org
Tue Nov 30 15:55:28 GMT 2004


Author: jerry
Date: 2004-11-30 15:55:27 +0000 (Tue, 30 Nov 2004)
New Revision: 4019

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4019

Log:
better error logging in register_message_flags() from Rob
Modified:
   branches/SAMBA_3_0/source/smbd/connection.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/connection.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/connection.c	2004-11-30 15:52:46 UTC (rev 4018)
+++ branches/SAMBA_3_0/source/smbd/connection.c	2004-11-30 15:55:27 UTC (rev 4019)
@@ -217,7 +217,8 @@
 
         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 @@
 		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;



More information about the samba-cvs mailing list