diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2012-12-17 16:48:25 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-12-19 10:30:56 +0100 |
commit | 4f03bc5d9fd06f0c3f58e674356b75e2830414b7 (patch) | |
tree | 4e2a6d0cad229c58e28f703abc21b21544467085 /include/common.h | |
parent | 904adb80d40eed1d6b527290714b233e8c37cb35 (diff) | |
download | barebox-4f03bc5d9fd06f0c3f58e674356b75e2830414b7.tar.gz barebox-4f03bc5d9fd06f0c3f58e674356b75e2830414b7.tar.xz |
lib: update size_human_readable to latest version
Copy over the latest version from u-boot which handles bigger sizes now
and does arithmetic with shifts instead of divisions.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h index 6256879f83..b1c96de88b 100644 --- a/include/common.h +++ b/include/common.h @@ -105,7 +105,7 @@ void reginfo(void); void __noreturn hang (void); void __noreturn panic(const char *fmt, ...); -char *size_human_readable(ulong size); +char *size_human_readable(unsigned long long size); /* common/main.c */ int run_command (const char *cmd, int flag); |