diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2017-05-17 13:02:24 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-05-17 15:52:58 +0200 |
commit | 65b2f3064ecaed946ee8fd9d4dc4337aea6fe68b (patch) | |
tree | 0aeb2732514a203edb1487e703cca51aab82ad33 /lib | |
parent | a9da8d3c4efb5acc284875c2837d7479566dc5b2 (diff) | |
download | barebox-65b2f3064ecaed946ee8fd9d4dc4337aea6fe68b.tar.gz barebox-65b2f3064ecaed946ee8fd9d4dc4337aea6fe68b.tar.xz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |