summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2023-07-25 15:37:06 -0600
committerBin Meng <[email protected]>2023-08-01 10:08:49 +0800
commitdb971a7587d04b3f1cf2e6d452f9e37f50c5b3ed (patch)
tree79795a577f17829294c18253349f4a56ef9d254e /cmd
parentd560f7cae04128061167c1507af08293b666c766 (diff)
x86: Add a little more info to cbsysinfo
Show the number of records in the table and the total table size in bytes. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/x86/cbsysinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/x86/cbsysinfo.c b/cmd/x86/cbsysinfo.c
index 2b8d3b0a435..84822a3e321 100644
--- a/cmd/x86/cbsysinfo.c
+++ b/cmd/x86/cbsysinfo.c
@@ -190,8 +190,9 @@ static void show_table(struct sysinfo_t *info, bool verbose)
struct cb_serial *ser = info->serial;
int i;
- printf("Coreboot table at %lx, decoded to %p",
- gd->arch.coreboot_table, info);
+ printf("Coreboot table at %lx, size %x, records %x (dec %d), decoded to %p",
+ gd->arch.coreboot_table, info->table_size, info->rec_count,
+ info->rec_count, info);
if (info->header)
printf(", forwarded to %p\n", info->header);
printf("\n");