4 #if defined( LDAP_DEBUG ) && defined( LDAP_LIBUI )
9 #endif /* LDAP_DEBUG && LDAP_LIBUI */
14 * Print arbitrary stuff, for debugging.
19 lber_bprint( char *data, int len )
21 #if defined( LDAP_DEBUG ) && defined( LDAP_LIBUI )
24 static char hexdig[] = "0123456789abcdef";
28 memset( out, 0, BPLEN );
31 fprintf( stderr, "\t%s\n", ( i == 0 ) ? "(end)" : out );
36 if ( isgraph( (unsigned char)*data )) {
41 out[ i ] = hexdig[ ( *data & 0xf0 ) >> 4 ];
42 out[ i+1 ] = hexdig[ *data & 0x0f ];
50 if ( i > BPLEN - 2 ) {
51 fprintf( stderr, "\t%s\n", out );
52 memset( out, 0, BPLEN );
59 #endif /* LDAP_DEBUG && LDAP_LIBUI */