[PATCH 4/5] bbu: use correct printf format specifier for size_t

Lucas Stach dev at lynxeye.de
Wed Mar 2 12:50:36 PST 2016


Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
 common/bbu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/bbu.c b/common/bbu.c
index 4d71fa4..fc82193 100644
--- a/common/bbu.c
+++ b/common/bbu.c
@@ -187,7 +187,7 @@ static int bbu_std_file_handler(struct bbu_handler *handler,
 		oflags |= O_CREAT;
 	} else {
 		if (!S_ISREG(s.st_mode) && s.st_size < data->len) {
-			printf("Image (%lld) is too big for device (%d)\n",
+			printf("Image (%lld) is too big for device (%zd)\n",
 					s.st_size, data->len);
 		}
 	}
-- 
2.5.0




More information about the barebox mailing list