diff options
author | Michael Adam <obnox@samba.org> | 2008-01-18 16:08:52 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-20 03:54:56 +0100 |
commit | 7745674f0cbf5be272ad20fdd1e5edd45165e849 (patch) | |
tree | feb2f5822c8d882aaf74c95b5b71ad7ea40692b4 /source3/registry | |
parent | e45dacce898021bbce0ba5b2c18dc8e103931e51 (diff) | |
download | samba-7745674f0cbf5be272ad20fdd1e5edd45165e849.tar.gz samba-7745674f0cbf5be272ad20fdd1e5edd45165e849.tar.bz2 samba-7745674f0cbf5be272ad20fdd1e5edd45165e849.zip |
Add some debugging output to reg_cachehook.c
Michael
(This used to be commit 2a278928805f4497e8afa28bdca433cbedc4a8d7)
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_cachehook.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c index 22352c6112..f9851c7810 100644 --- a/source3/registry/reg_cachehook.c +++ b/source3/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 *)®db_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 ); |