From 4939f46c7b4c334356c6820a7b57d094ad20c40a Mon Sep 17 00:00:00 2001
From: Andre Noll <maan@tuebingen.mpg.de>
Date: Thu, 1 Jan 2015 17:57:50 +0000
Subject: [PATCH] gcrypt: Fix format string in debug output.

"len" is of type int, not unsigned.

Found by cppcheck.
---
 gcrypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");
-- 
2.39.5