From 65b2f3064ecaed946ee8fd9d4dc4337aea6fe68b Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 17 May 2017 13:02:24 +0100 Subject: xfuncs: fix format specifier in pr_emerg call `enomem_panic()` calls `pr_emerg()` using `%d` in the format specifier string to print a value of type `size_t`. Change it to `%zu`. Signed-off-by: Ian Abbott Signed-off-by: Sascha Hauer --- lib/xfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xfuncs.c b/lib/xfuncs.c index 1bcaa5e10e..1942c1e7ff 100644 --- a/lib/xfuncs.c +++ b/lib/xfuncs.c @@ -29,7 +29,7 @@ static void __noreturn enomem_panic(size_t size) { pr_emerg("out of memory\n"); if (size) - pr_emerg("Unable to allocate %d bytes\n", size); + pr_emerg("Unable to allocate %zu bytes\n", size); malloc_stats(); -- cgit v1.2.3