From db971a7587d04b3f1cf2e6d452f9e37f50c5b3ed Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 25 Jul 2023 15:37:06 -0600 Subject: 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 Reviewed-by: Bin Meng --- cmd/x86/cbsysinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd') 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"); -- cgit v1.3.1