summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2025-12-21 02:58:56 +0100
committerHeinrich Schuchardt <[email protected]>2026-01-19 10:31:21 +0100
commit460fba63b5d204d02e5bec5e710b16c41766e3ca (patch)
treea7140fbfc7366fe3980ca1cb0655e49d2c69b5aa /cmd
parent6b2d05748cf3cd6ba417a96c00602b0122e10af6 (diff)
cmd/meminfo: display of addresses above 4 GiB
Addresses above 4 GiB don't fit into 8 digits. Use 13 digits which encompass up to 15 TiB. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/meminfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/meminfo.c b/cmd/meminfo.c
index aa3b5bafe17..b731280d106 100644
--- a/cmd/meminfo.c
+++ b/cmd/meminfo.c
@@ -23,9 +23,9 @@ static void print_region(const char *name, ulong base, ulong size, ulong *uptop)
{
ulong end = base + size;
- printf("%-12s %8lx %8lx %8lx", name, base, size, end);
+ printf("%-12s %13lx %13lx %13lx", name, base, size, end);
if (*uptop)
- printf(" %8lx", *uptop - end);
+ printf(" %13lx", *uptop - end);
putc('\n');
*uptop = base;
}
@@ -64,9 +64,9 @@ static int do_meminfo(struct cmd_tbl *cmdtp, int flag, int argc,
arch_dump_mem_attrs();
- printf("\n%-12s %8s %8s %8s %8s\n", "Region", "Base", "Size", "End",
+ printf("\n%-12s %13s %13s %13s %13s\n", "Region", "Base", "Size", "End",
"Gap");
- printf("------------------------------------------------\n");
+ printf("--------------------------------------------------------------------\n");
upto = 0;
if (IS_ENABLED(CONFIG_VIDEO))
print_region("video", gd_video_bottom(),