From 57546074cb245d67dda53b36272835f5f871b444 Mon Sep 17 00:00:00 2001
From: Sandrine Bailleux <sandrine.bailleux@arm.com>
Date: Wed, 7 Feb 2018 10:32:01 +0100
Subject: [PATCH] zlib: Fix build error when LOG_LEVEL=50

When enabling VERBOSE() traces, the zlib library fails to compile
because of an incompatible format specifier string. Fix that.

Change-Id: I74ff1c8dc2e6157ee982f7754bce4504599e3013
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
---
 lib/zlib/tf_gunzip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/zlib/tf_gunzip.c b/lib/zlib/tf_gunzip.c
index f07c380a1..574d871b0 100644
--- a/lib/zlib/tf_gunzip.c
+++ b/lib/zlib/tf_gunzip.c
@@ -89,8 +89,8 @@ int gunzip(uintptr_t *in_buf, size_t in_len, uintptr_t *out_buf,
 		ret = (zret == Z_MEM_ERROR) ? -ENOMEM : -EIO;
 	}
 
-	VERBOSE("zlib: %d byte input\n", stream.total_in);
-	VERBOSE("zlib: %d byte output\n", stream.total_out);
+	VERBOSE("zlib: %lu byte input\n", stream.total_in);
+	VERBOSE("zlib: %lu byte output\n", stream.total_out);
 
 	*in_buf = (uintptr_t)stream.next_in;
 	*out_buf = (uintptr_t)stream.next_out;
-- 
GitLab