Tune debug_print_ret format

This commit is contained in:
Manuel Pégourié-Gonnard 2014-03-25 13:22:23 +01:00 committed by Paul Bakker
parent ad914954c2
commit f84f799bcf

View file

@ -84,8 +84,8 @@ void debug_print_ret( const ssl_context *ssl, int level,
if( ssl->f_dbg == NULL ) if( ssl->f_dbg == NULL )
return; return;
snprintf( str, maxlen, "%s(%04d): %s() returned %d (0x%x)\n", snprintf( str, maxlen, "%s(%04d): %s() returned %d (-0x%04x)\n",
file, line, text, ret, ret ); file, line, text, ret, -ret );
str[maxlen] = '\0'; str[maxlen] = '\0';
ssl->f_dbg( ssl->p_dbg, level, str ); ssl->f_dbg( ssl->p_dbg, level, str );