]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
zlib: Fix build error when LOG_LEVEL=50
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Wed, 7 Feb 2018 09:32:01 +0000 (10:32 +0100)
committerSandrine Bailleux <sandrine.bailleux@arm.com>
Thu, 8 Feb 2018 08:36:48 +0000 (09:36 +0100)
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

index f07c380a1fed2bd7380bce8d7a0b443679078145..574d871b06d38129a6468b2b592036c4a6208422 100644 (file)
@@ -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;