[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1562-g239aa59

Michael Adam obnox at samba.org
Sun Jan 20 02:56:19 GMT 2008


The branch, v3-2-test has been updated
       via  239aa59cc1b78f7fb82aa66418cdf92517ebc123 (commit)
       via  2a278928805f4497e8afa28bdca433cbedc4a8d7 (commit)
      from  e327953bd6b11aeb6f2ae48b49550a942eae8e88 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 239aa59cc1b78f7fb82aa66418cdf92517ebc123
Author: Michael Adam <obnox at samba.org>
Date:   Fri Jan 18 17:57:32 2008 +0100

    Add a debug message to fetch_reg_values().
    
    Michael

commit 2a278928805f4497e8afa28bdca433cbedc4a8d7
Author: Michael Adam <obnox at samba.org>
Date:   Fri Jan 18 16:08:52 2008 +0100

    Add some debugging output to reg_cachehook.c
    
    Michael

-----------------------------------------------------------------------

Summary of changes:
 source/registry/reg_cachehook.c      |   11 ++++++++++-
 source/registry/reg_frontend_hilvl.c |    3 +++
 2 files changed, 13 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/registry/reg_cachehook.c b/source/registry/reg_cachehook.c
index 22352c6..f9851c7 100644
--- a/source/registry/reg_cachehook.c
+++ b/source/registry/reg_cachehook.c
@@ -37,6 +37,11 @@ bool reghook_cache_init( void )
 {
 	if (cache_tree == NULL) {
 		cache_tree = pathtree_init(&default_hook, NULL);
+		if (cache_tree !=0) {
+			DEBUG(10, ("reghook_cache_init: new tree with default "
+				   "ops %p for key [%s]\n", (void *)&regdb_ops,
+				   KEY_TREE_ROOT));
+		}
 	}
 
 	return (cache_tree != NULL);
@@ -65,7 +70,8 @@ bool reghook_cache_add( REGISTRY_HOOK *hook )
 		return false;
 	}
 
-	DEBUG(10,("reghook_cache_add: Adding key [%s]\n", key));
+	DEBUG(10, ("reghook_cache_add: Adding ops %p for key [%s]\n",
+		   (void *)hook->ops, key));
 
 	return pathtree_add( cache_tree, key, hook );
 }
@@ -102,6 +108,9 @@ REGISTRY_HOOK* reghook_cache_find( const char *keyname )
 	DEBUG(10,("reghook_cache_find: Searching for keyname [%s]\n", key));
 	
 	hook = (REGISTRY_HOOK *)pathtree_find( cache_tree, key ) ;
+
+	DEBUG(10, ("reghook_cache_find: found ops %p for key [%s]\n",
+		   hook ? (void *)hook->ops : 0, key));
 	
 	SAFE_FREE( key );
 	
diff --git a/source/registry/reg_frontend_hilvl.c b/source/registry/reg_frontend_hilvl.c
index 6819d06..e6e7613 100644
--- a/source/registry/reg_frontend_hilvl.c
+++ b/source/registry/reg_frontend_hilvl.c
@@ -116,6 +116,9 @@ int fetch_reg_values( REGISTRY_KEY *key, REGVAL_CTR *val )
 {
 	int result = -1;
 
+	DEBUG(10, ("fetch_reg_values called for key '%s' (ops %p)\n", key->name,
+		   (key->hook && key->hook->ops) ? (void *)key->hook->ops : NULL));
+
 	if ( key->hook && key->hook->ops && key->hook->ops->fetch_values )
 		result = key->hook->ops->fetch_values( key->name, val );
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list