diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-04-11 14:03:30 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-04-11 14:03:30 +0000 |
commit | 582f753eac7a111a93a8d6c049398a0998af848f (patch) | |
tree | 6c3af7cf11c4ac9b8362ded9b0fc1519c04cec51 /source/smbd/mangle_hash2.c | |
parent | ecdddd674f2ffad16eaa01a68c9c91ff3b355b3f (diff) | |
download | samba-582f753eac7a111a93a8d6c049398a0998af848f.tar.gz |
a few debug statements (disabled)
Diffstat (limited to 'source/smbd/mangle_hash2.c')
-rw-r--r-- | source/smbd/mangle_hash2.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/smbd/mangle_hash2.c b/source/smbd/mangle_hash2.c index 8b4b0f478d9..0ecea59caf2 100644 --- a/source/smbd/mangle_hash2.c +++ b/source/smbd/mangle_hash2.c @@ -187,7 +187,7 @@ static BOOL is_mangled(const char *name) { int len, i; - M_DEBUG(0,("is_mangled %s\n", name)); + M_DEBUG(0,("is_mangled %s ?\n", name)); /* the best distinguishing characteristic is the ~ */ if (name[6] != '~') return False; @@ -221,6 +221,8 @@ static BOOL is_mangled(const char *name) } } + M_DEBUG(0,("is_mangled %s -> yes\n", name)); + return True; } @@ -319,6 +321,7 @@ static BOOL check_cache(char *name) /* make sure that this is a mangled name from this cache */ if (!is_mangled(name)) { + M_DEBUG(0,("check_cache: %s -> not mangled\n", name)); return False; } @@ -333,6 +336,7 @@ static BOOL check_cache(char *name) /* now look in the prefix cache for that hash */ prefix = cache_lookup(hash); if (!prefix) { + M_DEBUG(0,("check_cache: %s -> %08X -> not found\n", name, hash)); return False; } @@ -484,7 +488,8 @@ static BOOL name_map(char *name, BOOL need83, BOOL cache83) cache_insert(name, prefix_len, hash); } - M_DEBUG(0,("name_map: %s -> %s\n", name, new_name)); + M_DEBUG(0,("name_map: %s -> %08X -> %s (cache=%d)\n", + name, hash, new_name, cache83)); /* and overwrite the old name */ fstrcpy(name, new_name); |