summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2008-07-02 00:47:30 +0000
committerPeter Stuge <peter@stuge.se>2008-07-02 00:47:30 +0000
commit12224acb6f1e50f5ad848c433c1269244d3d03ad (patch)
tree121ecfbfadef866f61633d415ac4ed43fdd9a3f3 /util
parentd9b7ae8becf903e1cb9d66a194f098fd9644b49a (diff)
downloadcoreboot-12224acb6f1e50f5ad848c433c1269244d3d03ad.tar.xz
flashrom: Case insensitive matching of vendor:board strings in coreboot table
Needed at least for GIGABYTE:m57sli in coreboot to match gigabyte:m57sli in flashrom. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3402 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r--util/flashrom/board_enable.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/util/flashrom/board_enable.c b/util/flashrom/board_enable.c
index a3eae3353d..e28a3f32c3 100644
--- a/util/flashrom/board_enable.c
+++ b/util/flashrom/board_enable.c
@@ -648,10 +648,10 @@ static struct board_pciid_enable *board_match_coreboot_name(const char *vendor,
struct board_pciid_enable *partmatch = NULL;
for (; board->name; board++) {
- if (vendor && (!board->lb_vendor || strcmp(board->lb_vendor, vendor)))
+ if (vendor && (!board->lb_vendor || strcasecmp(board->lb_vendor, vendor)))
continue;
- if (!board->lb_part || strcmp(board->lb_part, part))
+ if (!board->lb_part || strcasecmp(board->lb_part, part))
continue;
if (!pci_dev_find(board->first_vendor, board->first_device))
@@ -678,8 +678,7 @@ static struct board_pciid_enable *board_match_coreboot_name(const char *vendor,
if (partmatch)
return partmatch;
- printf("NOT FOUND %s:%s\n", vendor, part);
-
+ printf("\nUnknown vendor:board in coreboot table: %s:%s\n\n", vendor, part);
return NULL;
}