summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-05-17 13:02:24 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-17 15:52:58 +0200
commit65b2f3064ecaed946ee8fd9d4dc4337aea6fe68b (patch)
tree0aeb2732514a203edb1487e703cca51aab82ad33
parenta9da8d3c4efb5acc284875c2837d7479566dc5b2 (diff)
downloadbarebox-65b2f3064ecaed946ee8fd9d4dc4337aea6fe68b.tar.gz
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 <abbotti@mev.co.uk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--lib/xfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xfuncs.c b/lib/xfuncs.c
index 1bcaa5e..1942c1e 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();