* [U-Boot] [PATCH] lzma: fix printf warnings
@ 2012-01-08 9:14 Mike Frysinger
2012-03-28 8:14 ` Anatolij Gustschin
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2012-01-08 9:14 UTC (permalink / raw)
To: u-boot
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'
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
lib/lzma/LzmaTools.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/lzma/LzmaTools.c b/lib/lzma/LzmaTools.c
index 2eafad2..28a8aef 100644
--- a/lib/lzma/LzmaTools.c
+++ b/lib/lzma/LzmaTools.c
@@ -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;
--
1.7.8.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] lzma: fix printf warnings
2012-01-08 9:14 [U-Boot] [PATCH] lzma: fix printf warnings Mike Frysinger
@ 2012-03-28 8:14 ` Anatolij Gustschin
0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2012-03-28 8:14 UTC (permalink / raw)
To: u-boot
Hi Mike,
On Sun, 8 Jan 2012 04:14:35 -0500
Mike Frysinger <vapier@gentoo.org> wrote:
> 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'
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> lib/lzma/LzmaTools.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
Applied to u-boot-staging/agust at denx.de, thanks.
Anatolij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-28 8:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-08 9:14 [U-Boot] [PATCH] lzma: fix printf warnings Mike Frysinger
2012-03-28 8:14 ` Anatolij Gustschin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.