mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Minor format adjust to ber_dump output
This commit is contained in:
parent
9fe15dba96
commit
14abfc7fe6
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user