summaryrefslogtreecommitdiff
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-10-10 01:47:56 -0700
committerSimon Glass <sjg@chromium.org>2015-10-21 07:46:26 -0600
commitfd755f084e8812d598532e275e86b2372ce252b6 (patch)
tree79401280fe60a7410ad2c694f303c30f5dec4560 /arch/x86/lib
parent721e992a8af5e80b2a95a0bc92c9880f2056190b (diff)
downloadu-boot-imx-fd755f084e8812d598532e275e86b2372ce252b6.zip
u-boot-imx-fd755f084e8812d598532e275e86b2372ce252b6.tar.gz
u-boot-imx-fd755f084e8812d598532e275e86b2372ce252b6.tar.bz2
x86: fsp: Compact the output of hob command
Compact hob command output, especially by making hob type string a little bit shorter so that we can leave room for future extension. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/cmd_hob.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/x86/lib/cmd_hob.c b/arch/x86/lib/cmd_hob.c
index 915746a..6ff321a 100644
--- a/arch/x86/lib/cmd_hob.c
+++ b/arch/x86/lib/cmd_hob.c
@@ -14,16 +14,16 @@ DECLARE_GLOBAL_DATA_PTR;
static char *hob_type[] = {
"reserved",
"Hand-off",
- "Memory Allocation",
- "Resource Descriptor",
- "GUID Extension",
- "Firmware Volume",
+ "Mem Alloc",
+ "Res Desc",
+ "GUID Ext",
+ "FV",
"CPU",
- "Memory Pool",
+ "Mem Pool",
"reserved",
- "Firmware Volume 2",
- "Load PEIM Unused",
- "UEFI Capsule",
+ "FV2",
+ "Load PEIM",
+ "Capsule",
};
int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
@@ -37,20 +37,20 @@ int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
printf("HOB list address: 0x%08x\n\n", (unsigned int)hdr);
- printf("No. | Address | Type | Length in Bytes\n");
- printf("----|----------|---------------------|----------------\n");
+ printf("# | Address | Type | Len\n");
+ printf("---|----------|-----------|-----\n");
while (!end_of_hob(hdr)) {
- printf("%-3d | %08x | ", i, (unsigned int)hdr);
+ printf("%-2d | %08x | ", i, (unsigned int)hdr);
type = hdr->type;
if (type == HOB_TYPE_UNUSED)
desc = "*Unused*";
else if (type == HOB_TYPE_EOH)
- desc = "*END OF HOB*";
+ desc = "*EOH*";
else if (type >= 0 && type <= ARRAY_SIZE(hob_type))
desc = hob_type[type];
else
- desc = "*Invalid Type*";
- printf("%-19s | %-15d\n", desc, hdr->len);
+ desc = "*Invalid*";
+ printf("%-9s | %-4d\n", desc, hdr->len);
hdr = get_next_hob(hdr);
i++;
}