summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2002-02-04 00:59:23 +0000
committerSimo Sorce <idra@samba.org>2002-02-04 00:59:23 +0000
commite3bb6867454307ae592115e205d32ddd53988678 (patch)
tree9c2c7726eb02d3992633cac9a3568ca0217f7526 /source
parent717f45ca3ca85ca47f6d7b9379c17480f0bf82e4 (diff)
downloadsamba-e3bb6867454307ae592115e205d32ddd53988678.tar.gz
samba-e3bb6867454307ae592115e205d32ddd53988678.tar.xz
samba-e3bb6867454307ae592115e205d32ddd53988678.zip
better debug messages!
Diffstat (limited to 'source')
-rw-r--r--source/lib/charcnv.c1
-rw-r--r--source/smbd/mangle.c16
2 files changed, 9 insertions, 8 deletions
diff --git a/source/lib/charcnv.c b/source/lib/charcnv.c
index a1cda7bff32..d19911dfe2a 100644
--- a/source/lib/charcnv.c
+++ b/source/lib/charcnv.c
@@ -185,6 +185,7 @@ size_t convert_string_allocate(charset_t from, charset_t to,
if (descriptor == (smb_iconv_t)-1 || descriptor == (smb_iconv_t)0) {
/* conversion not supported, return -1*/
+ DEBUG(3, ("convert_string_allocate: conversion not supported!\n"));
return -1;
}
diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c
index 302817efb6b..ecdf82270c0 100644
--- a/source/smbd/mangle.c
+++ b/source/smbd/mangle.c
@@ -421,7 +421,7 @@ smb_ucs2_t *mangle(const smb_ucs2_t *unmangled)
p = acnv_dosu2(data.dptr);
if (!p)
{
- DEBUG(0,("mangle: out of memory!\n"));
+ DEBUG(0,("mangle: internal error acnv_dosu2() failed!\n"));
goto done;
}
}
@@ -477,7 +477,7 @@ char *dos_mangle(const char *dos_unmangled)
in = acnv_dosu2(dos_unmangled);
if (!in)
{
- DEBUG(0,("dos_mangle: out of memory!\n"));
+ DEBUG(0,("dos_mangle: internal error acnv_dosu2() failed!\n"));
return NULL;
}
@@ -491,7 +491,7 @@ char *dos_mangle(const char *dos_unmangled)
dos_mangled = acnv_u2dos(out);
if (!dos_mangled)
{
- DEBUG(0,("dos_mangle: out of memory!\n"));
+ DEBUG(0,("dos_mangle: internal error acnv_u2dos() failed!\n"));
goto done;
}
@@ -511,7 +511,7 @@ char *dos_unmangle(const char *dos_mangled)
in = acnv_dosu2(dos_mangled);
if (!in)
{
- DEBUG(0,("dos_unmangle: out of memory!\n"));
+ DEBUG(0,("dos_unmangle: internal error acnv_dosu2() failed!\n"));
return NULL;
}
@@ -525,7 +525,7 @@ char *dos_unmangle(const char *dos_mangled)
dos_unmangled = acnv_u2dos(out);
if (!dos_unmangled)
{
- DEBUG(0,("dos_unmangle: out of memory!\n"));
+ DEBUG(0,("dos_unmangle: internal error acnv_u2dos failed!\n"));
goto done;
}
@@ -552,7 +552,7 @@ BOOL is_8_3(const char *fname, BOOL check_case)
ucs2name = acnv_uxu2(f);
if (!ucs2name)
{
- DEBUG(0,("is_8_3: out of memory!\n"));
+ DEBUG(0,("is_8_3: internal error acnv_uxu2() failed!\n"));
goto done;
}
@@ -691,7 +691,7 @@ BOOL is_mangled(const char *s)
u2 = acnv_dosu2(s);
if (!u2)
{
- DEBUG(0,("is_mangled: out of memory!\n"));
+ DEBUG(0,("is_mangled: internal error acnv_dosu2() failed!!\n"));
return ret;
}
@@ -794,7 +794,7 @@ void mangle_name_83(char *s)
u2 = acnv_dosu2(s);
if (!u2)
{
- DEBUG(0,("mangle_name_83: out of memory!\n"));
+ DEBUG(0,("mangle_name_83: internal error acnv_dosu2() failed!\n"));
return;
}