diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2009-06-16 23:15:10 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2009-06-16 23:15:10 +0000 |
commit | a77598f497589d43c0a0403f250c5d73670b01ea (patch) | |
tree | 38cd9478fed5aea68858223a7e964754b5c19f0e /chipset_enable.c | |
parent | 421ad4108640045dd9f954f0d29b964a40495176 (diff) | |
download | flashrom-a77598f497589d43c0a0403f250c5d73670b01ea.zip flashrom-a77598f497589d43c0a0403f250c5d73670b01ea.tar.gz |
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 <uwe@hermann-uwe.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r-- | chipset_enable.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chipset_enable.c b/chipset_enable.c index a9e5d14..72ac367 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); |