summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-10-21 22:09:02 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-10-21 22:09:02 +0000
commit1877b5e51d427da1a9a3dc43a838c17cd8d25fb3 (patch)
tree8caab68db17860824c6d9f1d95003ae43672a944 /util
parent6ec8285aa151a246a05805ee7165c3c1ddb43958 (diff)
Reduce serial output, otherwise flashing will fail very often (trivial).
This has been tested on hardware by me. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3682 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r--util/flashrom/sst49lf040.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/flashrom/sst49lf040.c b/util/flashrom/sst49lf040.c
index 5528b527dc..10452bfc4a 100644
--- a/util/flashrom/sst49lf040.c
+++ b/util/flashrom/sst49lf040.c
@@ -52,12 +52,14 @@ int write_49lf040(struct flashchip *flash, uint8_t *buf)
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");