summaryrefslogtreecommitdiff
path: root/print_wiki.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-06-07 11:10:43 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-06-07 11:10:43 +0000
commit81bca7e1c7d919b94997e7af6572b3bd829437c9 (patch)
tree1357eba24cc65b24900151fcb032e9cd2bd8c52f /print_wiki.c
parent4524baaefe0a23fd9c99b80ca7b26ec92dc6238c (diff)
downloadflashrom-81bca7e1c7d919b94997e7af6572b3bd829437c9.tar.gz
Fix wiki board enable parameter printing. The logic was incorrect in one
place which had && instead of ||. Move the board info #define B to the file where it is used. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1035 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'print_wiki.c')
-rw-r--r--print_wiki.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print_wiki.c b/print_wiki.c
index 6e1aec3..b85bf19 100644
--- a/print_wiki.c
+++ b/print_wiki.c
@@ -145,9 +145,9 @@ static void wiki_helper(const char *devicetype, int cols,
color = !color;
k = 0;
- while ((b[k].vendor_name != NULL)
- && strcmp(b[k].vendor_name, boards[i].vendor)
- && strcmp(b[k].board_name, boards[i].name)) {
+ while ((b[k].vendor_name != NULL) &&
+ (strcmp(b[k].vendor_name, boards[i].vendor) ||
+ strcmp(b[k].board_name, boards[i].name))) {
k++;
}