better debug messages!
authorSimo Sorce <idra@samba.org>
Mon, 4 Feb 2002 00:59:23 +0000 (00:59 +0000)
committerSimo Sorce <idra@samba.org>
Mon, 4 Feb 2002 00:59:23 +0000 (00:59 +0000)
source/lib/charcnv.c
source/smbd/mangle.c

index a1cda7bff328735420a2da0de6b43c4a1fb28d16..d19911dfe2aa726288e9b403c100af006d57e585 100644 (file)
@@ -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;
        }
 
index 302817efb6b9b7e1e2fdabdec1706d90942be3d1..ecdf82270c0ee106f1e316bbf710a6a4bf5e72d5 100644 (file)
@@ -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;
        }