From 14abfc7fe642650050b9a0cf962d2acc911e8aec Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 15 Sep 2000 18:10:52 +0000 Subject: [PATCH] Minor format adjust to ber_dump output --- libraries/liblber/bprint.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ]; -- 2.39.5