[coreboot] r3682 - trunk/util/flashrom
svn at coreboot.org
svn at coreboot.org
Wed Oct 22 00:09:03 CEST 2008
Author: uwe
Date: 2008-10-22 00:09:02 +0200 (Wed, 22 Oct 2008)
New Revision: 3682
Modified:
trunk/util/flashrom/sst49lf040.c
Log:
Reduce serial output, otherwise flashing will fail very often (trivial).
This has been tested on hardware by me.
Signed-off-by: Uwe Hermann <uwe at hermann-uwe.de>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>
Modified: trunk/util/flashrom/sst49lf040.c
===================================================================
--- trunk/util/flashrom/sst49lf040.c 2008-10-21 21:49:48 UTC (rev 3681)
+++ trunk/util/flashrom/sst49lf040.c 2008-10-21 22:09:02 UTC (rev 3682)
@@ -52,12 +52,14 @@
erase_sector_jedec(bios, i * page_size);
/* write to the sector */
- printf("%04d at address: 0x%08x ", i, i * page_size);
+ if (i % 10 == 0)
+ printf("%04d at address: 0x%08x ", i, i * page_size);
write_sector_jedec(bios, buf + i * page_size,
bios + i * page_size, page_size);
- printf("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
+ if (i % 10 == 0)
+ printf("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
fflush(stdout);
}
printf("\n");
More information about the coreboot
mailing list