summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2024-11-07 11:14:42 +0100
committerTom Rini <[email protected]>2024-11-14 18:14:06 -0600
commitdfe7ab35147c2a2c8a63b2155227a86684d6dd4d (patch)
treec7e92009a2ae9c667badb1053d3e70d7ab9f9212 /lib
parent5430a5f67e5f73b0411d550b5dd6aa446a3b0299 (diff)
lmb.c: add missing comma in lmb_dump_region()
In the message string " %s[%d]\t[0x%llx-0x%llx], 0x%08llx bytes flags: " a comma is missing before flags. To avoid increasing the code size replace '0x%' by '%#'. Printing the size with leading zeros but not the addresses does not really make sense. Remove the leading zeros from the size output. Signed-off-by: Heinrich Schuchardt <[email protected]> [trini: Fix test/cmd/bdinfo.c for these changes] Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/lmb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lmb.c b/lib/lmb.c
index 3dfd8f4f88c..14b9b8466ff 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -506,7 +506,7 @@ static void lmb_dump_region(struct alist *lmb_rgn_lst, char *name)
enum lmb_flags flags;
int i;
- printf(" %s.count = 0x%x\n", name, lmb_rgn_lst->count);
+ printf(" %s.count = %#x\n", name, lmb_rgn_lst->count);
for (i = 0; i < lmb_rgn_lst->count; i++) {
base = rgn[i].base;
@@ -514,7 +514,7 @@ static void lmb_dump_region(struct alist *lmb_rgn_lst, char *name)
end = base + size - 1;
flags = rgn[i].flags;
- printf(" %s[%d]\t[0x%llx-0x%llx], 0x%08llx bytes flags: ",
+ printf(" %s[%d]\t[%#llx-%#llx], %#llx bytes, flags: ",
name, i, base, end, size);
lmb_print_region_flags(flags);
}