From 504538bdb030601cbe2966a496b2fda18ff7834f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 22 Oct 2010 12:16:20 +0200 Subject: [PATCH] s3:registry: improve debug messages about regdb refcount changes Autobuild-User: Michael Adam Autobuild-Date: Tue Dec 7 15:18:03 CET 2010 on sn-devel-104 --- source3/registry/reg_backend_db.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 322cabf564c..8445d528166 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; -- 2.11.4.GIT