r12341: add DEBUG statement.
authorGünther Deschner <gd@samba.org>
Mon, 19 Dec 2005 03:02:56 +0000 (03:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:05:54 +0000 (11:05 -0500)
Guenther

source/nsswitch/winbindd_cache.c

index 841b114a78509f066555658d195226e07f3a2718..81dd85e588bfd03ae5783970deb8e62c095c28bd 100644 (file)
@@ -546,8 +546,10 @@ static void centry_put_string(struct cache_entry *centry, const char *s)
 
        len = strlen(s);
        /* can't handle more than 254 char strings. Truncating is probably best */
-       if (len > 254)
+       if (len > 254) {
+               DEBUG(10,("centry_put_string: truncating len (%d) to: 254\n", len));
                len = 254;
+       }
        centry_put_uint8(centry, len);
        centry_expand(centry, len);
        memcpy(centry->data + centry->ofs, s, len);