Tune debug_print_ret format
This commit is contained in:
parent
ad914954c2
commit
f84f799bcf
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ void debug_print_ret( const ssl_context *ssl, int level,
|
|||
if( ssl->f_dbg == NULL )
|
||||
return;
|
||||
|
||||
snprintf( str, maxlen, "%s(%04d): %s() returned %d (0x%x)\n",
|
||||
file, line, text, ret, ret );
|
||||
snprintf( str, maxlen, "%s(%04d): %s() returned %d (-0x%04x)\n",
|
||||
file, line, text, ret, -ret );
|
||||
|
||||
str[maxlen] = '\0';
|
||||
ssl->f_dbg( ssl->p_dbg, level, str );
|
||||
|
|
Loading…
Reference in a new issue