X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Fbdinfo.c;h=cbeba6ba28f771e3ce9ddf3d13efea6d9298350c;hb=3fda0262c33fc2b63be06588afe2802a8ab81eb8;hp=60b438766d31b1659fe94e43b74dc3874f03697a;hpb=94228a9188803473206544c8f33649ea72bf1ee1;p=oweals%2Fu-boot.git diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 60b438766d..cbeba6ba28 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -16,7 +16,7 @@ DECLARE_GLOBAL_DATA_PTR; __maybe_unused static void print_num(const char *name, ulong value) { - printf("%-12s= 0x%08lX\n", name, value); + printf("%-12s= 0x%0*lx\n", name, 2 * (int)sizeof(value), value); } __maybe_unused @@ -348,7 +348,7 @@ static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, CONFIG_VAL(SYS_MALLOC_F_LEN)); #endif if (gd->fdt_blob) - printf("fdt_blob = %p\n", gd->fdt_blob); + print_num("fdt_blob", (ulong)gd->fdt_blob); return 0; }