From 8ebfe084ab198c2d672c0962debfd616b9dd1e99 Mon Sep 17 00:00:00 2001 From: Peter Vaskovic Date: Sat, 24 May 2014 15:19:35 +0200 Subject: [PATCH] Fix minor format string inconsistency. --- library/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/debug.c b/library/debug.c index f2dd776795..b747ddc809 100644 --- a/library/debug.c +++ b/library/debug.c @@ -131,7 +131,7 @@ void debug_print_buf( const ssl_context *ssl, int level, if( debug_log_mode == POLARSSL_DEBUG_LOG_FULL ) idx = snprintf( str, maxlen, "%s(%04d): ", file, line ); - snprintf( str + idx, maxlen - idx, "dumping '%s' (%d bytes)\n", + snprintf( str + idx, maxlen - idx, "dumping '%s' (%u bytes)\n", text, (unsigned int) len ); str[maxlen] = '\0';