]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bdinfo: Change to use bdinfo_print_num_ll() where the number could be 64-bit
authorBin Meng <bin.meng@windriver.com>
Sun, 31 Jan 2021 12:36:06 +0000 (20:36 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000 (03:38 -0700)
There are some calls to bdinfo_print_num_l() with parameters that
could be a 64-bit value on a 32-bit system. Change those calls to
use bdinfo_print_num_ll() instead.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/lib/bdinfo.c
cmd/bdinfo.c

index 4a98cb7ef59bb00e10f64f0201bb004f97bed5d6..c905783bdc8416d496db5f9479018318d32ba2b5 100644 (file)
@@ -18,14 +18,14 @@ void arch_print_bdinfo(void)
        bdinfo_print_num_l("arch_number", bd->bi_arch_number);
 #ifdef CONFIG_SYS_MEM_RESERVE_SECURE
        if (gd->arch.secure_ram & MEM_RESERVE_SECURE_SECURED) {
-               bdinfo_print_num_l("Secure ram",
-                                  gd->arch.secure_ram &
-                                  MEM_RESERVE_SECURE_ADDR_MASK);
+               bdinfo_print_num_ll("Secure ram",
+                                   gd->arch.secure_ram &
+                                   MEM_RESERVE_SECURE_ADDR_MASK);
        }
 #endif
 #ifdef CONFIG_RESV_RAM
        if (gd->arch.resv_ram)
-               bdinfo_print_num_l("Reserved ram", gd->arch.resv_ram);
+               bdinfo_print_num_ll("Reserved ram", gd->arch.resv_ram);
 #endif
 #if !(CONFIG_IS_ENABLED(SYS_ICACHE_OFF) && CONFIG_IS_ENABLED(SYS_DCACHE_OFF))
        bdinfo_print_num_l("TLB addr", gd->arch.tlb_addr);
index 996546faf32cf380c7f3e6bd87405637495784a2..dfd50ae8491d5c35cbda0bbb6a8ebd815ef546af 100644 (file)
@@ -55,8 +55,8 @@ static void print_bi_dram(const struct bd_info *bd)
        for (i = 0; i < CONFIG_NR_DRAM_BANKS; ++i) {
                if (bd->bi_dram[i].size) {
                        bdinfo_print_num_l("DRAM bank", i);
-                       bdinfo_print_num_l("-> start",  bd->bi_dram[i].start);
-                       bdinfo_print_num_l("-> size",   bd->bi_dram[i].size);
+                       bdinfo_print_num_ll("-> start", bd->bi_dram[i].start);
+                       bdinfo_print_num_ll("-> size",  bd->bi_dram[i].size);
                }
        }
 }