Author: stepan Date: 2008-03-16 00:41:19 +0100 (Sun, 16 Mar 2008) New Revision: 3151
Modified: trunk/util/flashrom/flashrom.c Log: 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
Modified: trunk/util/flashrom/flashrom.c =================================================================== --- trunk/util/flashrom/flashrom.c 2008-03-15 16:30:39 UTC (rev 3150) +++ trunk/util/flashrom/flashrom.c 2008-03-15 23:41:19 UTC (rev 3151) @@ -129,9 +129,12 @@ */
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,