From: Kurt Zeilenga Date: Fri, 15 Sep 2000 18:10:52 +0000 (+0000) Subject: Minor format adjust to ber_dump output X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1975 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=14abfc7fe642650050b9a0cf962d2acc911e8aec;p=openldap Minor format adjust to ber_dump output --- diff --git a/libraries/liblber/bprint.c b/libraries/liblber/bprint.c index e88f072a78..0315e67f3d 100644 --- a/libraries/liblber/bprint.c +++ b/libraries/liblber/bprint.c @@ -98,6 +98,7 @@ int ber_pvt_log_printf( int errlvl, int loglvl, const char *fmt, ... ) (*ber_pvt_log_print)( buf ); return 1; } + #if 0 static int ber_log_puts(int errlvl, int loglvl, char *buf) { @@ -111,6 +112,7 @@ static int ber_log_puts(int errlvl, int loglvl, char *buf) return 1; } #endif + /* * Print arbitrary stuff, for debugging. */ @@ -168,7 +170,7 @@ ber_bprint( line[ 6 ] = ':'; } - off = BP_OFFSET + n*3; + off = BP_OFFSET + n*3 + ((n >= 8)?1:0); line[ off ] = hexdig[ ( data[i] & 0xf0U ) >> 4 ]; line[ off+1 ] = hexdig[ data[i] & 0x0fU ];