summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-04-11 14:03:30 +0000
committerAndrew Tridgell <tridge@samba.org>2002-04-11 14:03:30 +0000
commit1ed0c5ea704a64a5ace6ba9ad600cb320c7d7ea4 (patch)
tree6a38210ed150eff49388a0753367d59aa5e642a6
parent4c889cb8b6ebaf73fd4034c590b758c367b69bae (diff)
downloadsamba-1ed0c5ea704a64a5ace6ba9ad600cb320c7d7ea4.tar.gz
samba-1ed0c5ea704a64a5ace6ba9ad600cb320c7d7ea4.tar.bz2
samba-1ed0c5ea704a64a5ace6ba9ad600cb320c7d7ea4.zip
a few debug statements (disabled)
(This used to be commit 582f753eac7a111a93a8d6c049398a0998af848f)
-rw-r--r--source3/smbd/mangle_hash2.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/smbd/mangle_hash2.c b/source3/smbd/mangle_hash2.c
index 8b4b0f478d..0ecea59caf 100644
--- a/source3/smbd/mangle_hash2.c
+++ b/source3/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);