Commit f84f799b authored by Manuel Pégourié-Gonnard's avatar Manuel Pégourié-Gonnard Committed by Paul Bakker

Tune debug_print_ret format

parent ad914954
......@@ -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 );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment