summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2005-12-18 16:41:10 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2005-12-18 16:41:10 +0000
commite3705282c7be0bc88089d877ba904053eb7fa8f3 (patch)
treea9bf154f3d56d27069c1e1aff5567ba3d139af86 /layout.c
parent53e96253a4482072b2b39df1ebc2bd4c5d012581 (diff)
downloadast2050-flashrom-e3705282c7be0bc88089d877ba904053eb7fa8f3.zip
ast2050-flashrom-e3705282c7be0bc88089d877ba904053eb7fa8f3.tar.gz
Multiple unrelated changes
* make -v switch print debug messages. * do case insensitive comparison of mainboards, as wished on the mailinglist Corresponding to flashrom svn r37 and coreboot v2 svn r2146.
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/layout.c b/layout.c
index 2219096..8ac3af8 100644
--- a/layout.c
+++ b/layout.c
@@ -50,14 +50,18 @@ int show_id(uint8_t *bios, int size)
return 0;
}
- printf("LinuxBIOS image size=%d\n", *walk);
+ printf("LinuxBIOS last image size (not rom size) is %d bytes.\n", *walk);
walk--; mainboard_part=strdup((const char *)(bios+size-*walk));
walk--; mainboard_vendor=strdup((const char *)(bios+size-*walk));
printf("MANUFACTURER: %s\n", mainboard_vendor);
printf("MAINBOARD ID: %s\n", mainboard_part);
- if(lb_vendor && !strcmp(mainboard_vendor, lb_vendor) &&
- lb_part && !strcmp(mainboard_part, lb_part)) {
+
+ /* These comparisons are case insensitive to make things
+ * a little less user^Werror prone.
+ */
+ if(lb_vendor && !strcasecmp(mainboard_vendor, lb_vendor) &&
+ lb_part && !strcasecmp(mainboard_part, lb_part)) {
printf ("This firmware image matches "
"this motherboard.\n");
} else {
OpenPOWER on IntegriCloud