summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2019-11-17 13:39:46 +0100
committerEdward O'Callaghan <quasisec@chromium.org>2019-12-06 02:50:41 +0000
commit5d068ddca4aa8c657bbf3e7df8cf94c8e3212ada (patch)
treeb7b401c7dbdfa20aee86e70574cdcb77bda6f468
parent7bd31a435b7c8f2b278b9e8233083ff2134abe2d (diff)
downloadflashrom-5d068ddca4aa8c657bbf3e7df8cf94c8e3212ada.tar.gz
flashrom-5d068ddca4aa8c657bbf3e7df8cf94c8e3212ada.tar.bz2
flashrom-5d068ddca4aa8c657bbf3e7df8cf94c8e3212ada.zip
Revert "print.c: Dedup 'test_state_to_text()' logic"
This reverts commit 61e16e549a52194ac80ef40504f2dc661d1ff99c. Obviously throws alignment in the table off and changes output class from `general` to `programmer` for no visible reason. Change-Id: I864044b9fac6af9cf6a89c053eccdcb36f17c7bd Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/36909 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: David Hendricks <david.hendricks@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--print.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/print.c b/print.c
index 596fc5325..6a7ff5dfd 100644
--- a/print.c
+++ b/print.c
@@ -401,7 +401,14 @@ static void print_supported_boards_helper(const struct board_info *boards,
for (i = 0; i < maxboardlen - strlen(b->name); i++)
msg_ginfo(" ");
- msg_pinfo(test_state_to_text(b->working));
+ switch (b->working) {
+ case OK: msg_ginfo("OK "); break;
+ case NT: msg_ginfo("NT "); break;
+ case DEP: msg_ginfo("DEP "); break;
+ case NA: msg_ginfo("N/A "); break;
+ case BAD:
+ default: msg_ginfo("BAD "); break;
+ }
for (e = board_matches; e->vendor_name != NULL; e++) {
if (strcmp(e->vendor_name, b->vendor)