diff options
author | Simon Glass <sjg@chromium.org> | 2019-10-21 17:26:44 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-10-27 10:56:51 -0600 |
commit | dee74e6cc4a94da19b99309ad1c99eb5bddfe217 (patch) | |
tree | 50a154c6f6592e9a3981cb77675b2df392c6c9a5 /lib | |
parent | 1c1c8a3a990742a73a75b091c35213b0a50f0c45 (diff) | |
download | u-boot-dee74e6cc4a94da19b99309ad1c99eb5bddfe217.tar.gz |
tiny-printf: Add print_grouped_ull()
This function is used in the bootstage report which may be trigged in TPL
or TPL. Add a very basic implication of this function so that it builds.
There is no attempt to get the formatting right, since this would add too
much code size.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tiny-printf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c index 632b424914..d46d206873 100644 --- a/lib/tiny-printf.c +++ b/lib/tiny-printf.c @@ -389,3 +389,9 @@ int snprintf(char *buf, size_t size, const char *fmt, ...) return ret; } + +void print_grouped_ull(unsigned long long int_val, int digits) +{ + /* Don't try to print the upper 32-bits */ + printf("%ld ", (ulong)int_val); +} |