[PATCH 5/6] gui: Fix signed/unsigned arguments for printf

Alexander Shiyan shc_work at mail.ru
Fri Nov 8 13:12:58 EST 2013


"%u" in format string requires a unsigned integer.

Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
 lib/gui/png_pico.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/gui/png_pico.c b/lib/gui/png_pico.c
index 393a732..256db35 100644
--- a/lib/gui/png_pico.c
+++ b/lib/gui/png_pico.c
@@ -57,7 +57,7 @@ struct image *png_open(char *inbuf, int insize)
 	png_info = PNG_decode(inbuf, insize);
 
 	if(PNG_error) {
-		printf("error %u:\n", PNG_error);
+		printf("error %i:\n", PNG_error);
 		ret = -EINVAL;
 		goto err;
 	}
-- 
1.8.1.5




More information about the barebox mailing list