diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2009-05-22 11:37:27 +0000 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2009-05-22 11:37:27 +0000 |
commit | e8ba538d034fb50549bb838b6446d8c1fad8379f (patch) | |
tree | 47f8b213464e6d7b60bb9a0187d12b291c5de684 /board_enable.c | |
parent | 690bcbaf7f310c49a8c7ba9300d454f1dbc044ce (diff) | |
download | ast2050-flashrom-e8ba538d034fb50549bb838b6446d8c1fad8379f.zip ast2050-flashrom-e8ba538d034fb50549bb838b6446d8c1fad8379f.tar.gz |
A bunch of output beautifications and improvements, as well as doc fixes
- Update manpage, we now report supported boards via -L.
- Add some missing escaping for '-' characters in the manpage.
Corresponding to flashrom svn r543.
- Shorten some of the really long device names, so that -L output looks
nicer.
- Display a "table header" for all entries/columns in -L output.
- Make -L output tabular for all lists for better readability.
- Do not print "unknown XXXX SPI chip" entries in -L output.
- And random other cosmetics...
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
Diffstat (limited to 'board_enable.c')
-rw-r--r-- | board_enable.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/board_enable.c b/board_enable.c index ffc43ed..1819080 100644 --- a/board_enable.c +++ b/board_enable.c @@ -822,7 +822,9 @@ void print_supported_boards(void) int i, j; struct board_pciid_enable *b = board_pciid_enables; - printf("\nSupported boards which need write-enable code:\n\n"); + printf("\nSupported boards which need write-enable code:\n\nVendor: " + " Board: Required option:\n\n"); + for (i = 0; b[i].vendor_name != NULL; i++) { printf("%s", b[i].vendor_name); for (j = 0; j < 25 - strlen(b[i].vendor_name); j++) @@ -831,9 +833,9 @@ void print_supported_boards(void) for (j = 0; j < 25 - strlen(b[i].board_name); j++) printf(" "); if (b[i].lb_vendor != NULL) - printf("(-m %s:%s)\n", b[i].lb_vendor, b[i].lb_part); + printf("-m %s:%s\n", b[i].lb_vendor, b[i].lb_part); else - printf("(autodetected)\n"); + printf("(none, board is autodetected)\n"); } printf("\nSupported boards which don't need write-enable code:\n\n"); |