From 4e587905aeaf544c94e96f508a1b2e1294b31b0d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 16 Jun 2009 23:15:10 +0000 Subject: List the size (in KB) and type of supported flash chips in 'flashrom -L' Also, list how many chips/chipsets/boards we support in 'flashrom -L'. Corresponding to flashrom svn r599. Signed-off-by: Uwe Hermann Acked-by: Carl-Daniel Hailfinger --- chipset_enable.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'chipset_enable.c') diff --git a/chipset_enable.c b/chipset_enable.c index a9e5d14c..72ac367a 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -1037,11 +1037,14 @@ const struct penable chipset_enables[] = { void print_supported_chipsets(void) { - int i, j; + int i, j, chipsetcount = 0; const struct penable *c = chipset_enables; - printf("\nSupported chipsets:\n\nVendor: Chipset:" - " PCI IDs:\n\n"); + for (i = 0; c[i].vendor_name != NULL; i++) + chipsetcount++; + + printf("\nSupported chipsets (total: %d):\n\nVendor: " + "Chipset: PCI IDs:\n\n", chipsetcount); for (i = 0; c[i].vendor_name != NULL; i++) { printf("%s", c[i].vendor_name); -- cgit v1.2.3