diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2008-03-15 23:41:19 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2008-03-15 23:41:19 +0000 |
commit | 582ce71cc5d3948908ce109ff68a8563b1b2030c (patch) | |
tree | cebdaedd05156ac8e14741639ae0b2549715f6bc /util/flashrom/flashrom.c | |
parent | 9dcfc00dc6e80d03c149129397153dc3f9b15326 (diff) |
remove nasty warning that happened due to our vendor detection
mechanism.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3151 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/flashrom.c')
-rw-r--r-- | util/flashrom/flashrom.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/util/flashrom/flashrom.c b/util/flashrom/flashrom.c index a8ea4a3cea..4130d76c3f 100644 --- a/util/flashrom/flashrom.c +++ b/util/flashrom/flashrom.c @@ -129,9 +129,12 @@ struct flashchip *probe_flash(struct flashchip *flash) */ if (getpagesize() > size) { + /* + * if a flash size of 0 is mapped, we map a single page + * so we can probe in that area whether we know the + * vendor at least. + */ size = getpagesize(); - printf("WARNING: size: %d -> %ld (page size)\n", - flash->total_size * 1024, (unsigned long)size); } bios = mmap(0, size, PROT_WRITE | PROT_READ, MAP_SHARED, |