diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bdinfo.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 8a1bea4e34..af2e9757db 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -16,9 +16,16 @@ #include <vsprintf.h> #include <asm/cache.h> #include <asm/global_data.h> +#include <display_options.h> DECLARE_GLOBAL_DATA_PTR; +void bdinfo_print_size(const char *name, uint64_t size) +{ + printf("%-12s= ", name); + print_size(size, "\n"); +} + void bdinfo_print_num_l(const char *name, ulong value) { printf("%-12s= 0x%0*lx\n", name, 2 * (int)sizeof(value), value); |