From: Andre Noll Date: Thu, 1 Jan 2015 17:57:50 +0000 (+0000) Subject: gcrypt: Fix format string in debug output. X-Git-Tag: v0.5.4~41 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=4939f46c7b4c334356c6820a7b57d094ad20c40a;p=paraslash.git gcrypt: Fix format string in debug output. "len" is of type int, not unsigned. Found by cppcheck. --- diff --git a/gcrypt.c b/gcrypt.c index af7f2af1..f4d4cc6f 100644 --- a/gcrypt.c +++ b/gcrypt.c @@ -26,7 +26,7 @@ static void dump_buffer(const char *msg, unsigned char *buf, int len) { int i; - fprintf(stderr, "%s (%u bytes): ", msg, len); + fprintf(stderr, "%s (%d bytes): ", msg, len); for (i = 0; i < len; i++) fprintf(stderr, "%02x ", buf[i]); fprintf(stderr, "\n");