diff options
author | Stefan Reinauer <stepan@openbios.org> | 2005-12-18 16:41:10 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2005-12-18 16:41:10 +0000 |
commit | 98de8cdbfe055a80b4d4a265b1463f3826a346e6 (patch) | |
tree | 19dec465cc4501f03312435c0bc0a4f7392b0f49 /util/flashrom/layout.c | |
parent | 6c02eb2cb54c5013f2bba4622cc1a487bca55d1f (diff) |
* make -v switch print debug messages.
* do case insensitive comparison of mainboards, as wished on the
mailinglist
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2146 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/layout.c')
-rw-r--r-- | util/flashrom/layout.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/util/flashrom/layout.c b/util/flashrom/layout.c index 2219096246..8ac3af876d 100644 --- a/util/flashrom/layout.c +++ b/util/flashrom/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 { |