summaryrefslogtreecommitdiffstats
path: root/sst49lf040.c
diff options
context:
space:
mode:
authorOllie Lho <ollie@sis.com.tw>2004-03-27 00:18:15 +0000
committerOllie Lho <ollie@sis.com.tw>2004-03-27 00:18:15 +0000
commit8b8897a5fd6325ae4709e3066107c3e419cd7fd6 (patch)
tree43195dce8ff0bebae971ac8c2f80162eacc3de01 /sst49lf040.c
parent070647d114d767a3b31df2659fd351047d6eee61 (diff)
downloadast2050-flashrom-8b8897a5fd6325ae4709e3066107c3e419cd7fd6.zip
ast2050-flashrom-8b8897a5fd6325ae4709e3066107c3e419cd7fd6.tar.gz
Remove false alarm of erase/write, use verify '-v' if you are not sure about the integrity
Corresponding to flashrom svn r19 and coreboot v2 svn r1486.
Diffstat (limited to 'sst49lf040.c')
-rw-r--r--sst49lf040.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sst49lf040.c b/sst49lf040.c
index f18e733..624a865 100644
--- a/sst49lf040.c
+++ b/sst49lf040.c
@@ -33,8 +33,8 @@
int write_49lf040(struct flashchip *flash, unsigned char *buf)
{
int i;
- int total_size = flash->total_size * 1024, page_size =
- flash->page_size;
+ int total_size = flash->total_size * 1024;
+ int page_size = flash->page_size;
volatile char *bios = flash->virt_addr;
printf("Programming Page: ");
@@ -48,8 +48,7 @@ int write_49lf040(struct flashchip *flash, unsigned char *buf)
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");
+ 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");
OpenPOWER on IntegriCloud