]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: fsp: Always use hex numbers in the hob command output
authorBin Meng <bmeng.cn@gmail.com>
Fri, 11 Dec 2015 10:55:51 +0000 (02:55 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 13 Jan 2016 04:20:15 +0000 (12:20 +0800)
In the 'fsp hob' command output, decimal numbers and hexadecimal
numbers are used mixedly. Now change to always use hex numbers
to keep consistency.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/fsp/cmd_fsp.c

index 4959edf11bb2aa0d7af1435746d897b5ff64e301..25546638cf6e4b9e7f7a3d9ffe76db17ab9a7e1b 100644 (file)
@@ -69,7 +69,7 @@ static int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        printf("---|----------|-----------|------|-");
        printf("------------------------------------------\n");
        while (!end_of_hob(hdr)) {
-               printf("%-2d | %08x | ", i, (unsigned int)hdr);
+               printf("%02x | %08x | ", i, (unsigned int)hdr);
                type = hdr->type;
                if (type == HOB_TYPE_UNUSED)
                        desc = "*Unused*";
@@ -79,7 +79,7 @@ static int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                        desc = hob_type[type];
                else
                        desc = "*Invalid*";
-               printf("%-9s | %-4d | ", desc, hdr->len);
+               printf("%-9s | %04x | ", desc, hdr->len);
 
                if (type == HOB_TYPE_MEM_ALLOC || type == HOB_TYPE_RES_DESC ||
                    type == HOB_TYPE_GUID_EXT) {