diff options
author | Michael Adam <obnox@samba.org> | 2010-10-22 12:16:20 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-12-07 15:18:03 +0100 |
commit | d91189727adf6b4cbe219da71a21bfc7bc2bff7f (patch) | |
tree | 1b22b7fafe70f131976661089891898fa137055a /source3/registry | |
parent | af4a4f58b5192ba7c80f096f9c7bc26c128c007c (diff) | |
download | samba-d91189727adf6b4cbe219da71a21bfc7bc2bff7f.tar.gz samba-d91189727adf6b4cbe219da71a21bfc7bc2bff7f.tar.bz2 samba-d91189727adf6b4cbe219da71a21bfc7bc2bff7f.zip |
s3:registry: improve debug messages about regdb refcount changes
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Dec 7 15:18:03 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_backend_db.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 322cabf564..8445d52816 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -497,8 +497,8 @@ WERROR regdb_init(void) WERROR werr; if (regdb) { - DEBUG(10, ("regdb_init: incrementing refcount (%d)\n", - regdb_refcount)); + DEBUG(10, ("regdb_init: incrementing refcount (%d->%d)\n", + regdb_refcount, regdb_refcount+1)); regdb_refcount++; return WERR_OK; } @@ -519,6 +519,8 @@ WERROR regdb_init(void) } regdb_refcount = 1; + DEBUG(10, ("regdb_init: registry db openend. refcount reset (%d)\n", + regdb_refcount)); expected_version = REGVER_V2; @@ -574,7 +576,8 @@ WERROR regdb_open( void ) WERROR result = WERR_OK; if ( regdb ) { - DEBUG(10,("regdb_open: incrementing refcount (%d)\n", regdb_refcount)); + DEBUG(10, ("regdb_open: incrementing refcount (%d->%d)\n", + regdb_refcount, regdb_refcount+1)); regdb_refcount++; return WERR_OK; } @@ -592,7 +595,8 @@ WERROR regdb_open( void ) unbecome_root(); regdb_refcount = 1; - DEBUG(10,("regdb_open: refcount reset (%d)\n", regdb_refcount)); + DEBUG(10, ("regdb_open: registry db opened. refcount reset (%d)\n", + regdb_refcount)); return result; } @@ -608,7 +612,8 @@ int regdb_close( void ) regdb_refcount--; - DEBUG(10,("regdb_close: decrementing refcount (%d)\n", regdb_refcount)); + DEBUG(10, ("regdb_close: decrementing refcount (%d->%d)\n", + regdb_refcount+1, regdb_refcount)); if ( regdb_refcount > 0 ) return 0; |