From 4146cedae45024077e5772d40a6de821e3738116 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Mon, 7 Jun 2010 11:10:43 +0000 Subject: 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. Corresponding to flashrom svn r1035. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Uwe Hermann --- print_wiki.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'print_wiki.c') 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++; } -- cgit v1.1