lzma: fix printf warnings
PATCH 1/1 lzma: fix printf warnings
Fix size_t printf format warnings:
LzmaTools.c: In function 'lzmaBuffToBuffDecompress':
LzmaTools.c:110:5: warning: format '%x' expects type 'unsigned int',
but argument 2 has type 'SizeT'
LzmaTools.c:111:5: warning: format '%x' expects type 'unsigned int',
but argument 2 has type 'SizeT'
--- lib/lzma/LzmaTools.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
lib/lzma/LzmaTools.c +2 -2
@@ -107,8 +107,8 @@ int lzmaBuffToBuffDecompress (unsigned char *outStream, SizeT *uncompressedSize, } } -debug ("LZMA: Uncompresed size............ 0x%x\n" , outSizeFull); -debug ("LZMA: Compresed size.............. 0x%x\n" , compressedSize); +debug ("LZMA: Uncompresed size............ 0x%zx\n" , outSizeFull); +debug ("LZMA: Compresed size.............. 0x%zx\n" , compressedSize); g_Alloc.Alloc = SzAlloc; g_Alloc.Free = SzFree;
Signature · 1 line
1.7.8.3
PATCH 1/1 lzma: fix printf warnings
Hi Mike,
Quoted 8 lines · On Sun, 8 Jan 2012 04:14:35 -0500 Mike Frysinger <[email protected]> wrote:
Fix
size_tprintf format warnings:
LzmaTools.c: In function 'lzmaBuffToBuffDecompress':
LzmaTools.c:110:5: warning: format '%x' expects type 'unsigned int',
but argument 2 has type 'SizeT'
LzmaTools.c:111:5: warning: format '%x' expects type 'unsigned int',
but argument 2 has type 'SizeT'
Quoted 4 lines
Signed-off-by Mike Frysinger <[email protected]>--- lib/lzma/LzmaTools.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Applied to u-boot-staging/agust at denx.de, thanks.
Anatolij