From f84f799bcfd033e6752cd75aa046fb2fb8185894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 25 Mar 2014 13:22:23 +0100 Subject: [PATCH] Tune debug_print_ret format --- library/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/debug.c b/library/debug.c index 4e674e1e2..51b93075f 100644 --- a/library/debug.c +++ b/library/debug.c @@ -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 );