diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-10-08 20:29:57 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-10-08 20:29:57 +0000 |
commit | b28349f8bc40dd55524113e258b3185711e80366 (patch) | |
tree | a4280b2c5eca9bb4cb8b767dc04bf8aaa0b6807f /jedec.c | |
parent | f52f784bb300ec0acbd6c6bd9e6c3e5b435c4a90 (diff) | |
download | flashrom-b28349f8bc40dd55524113e258b3185711e80366.tar.gz flashrom-b28349f8bc40dd55524113e258b3185711e80366.tar.bz2 flashrom-b28349f8bc40dd55524113e258b3185711e80366.zip |
Remove progress printing from individual flash chip drivers
Progress printing should be handled in the generic code, and will end up
there once partial write is possible.
Corresponding to flashrom svn r1207.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to 'jedec.c')
-rw-r--r-- | jedec.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -402,15 +402,11 @@ int write_jedec(struct flashchip *flash, uint8_t *buf) mask = getaddrmask(flash); - msg_cinfo("Programming page: "); for (i = 0; i < total_size / page_size; i++) { - msg_cinfo("%04d at address: 0x%08x", i, i * page_size); if (write_page_write_jedec_common(flash, buf + i * page_size, i * page_size, page_size, mask)) failed = 1; - msg_cinfo("\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"); } - msg_cinfo("DONE!\n"); return failed; } @@ -424,18 +420,10 @@ int write_jedec_1(struct flashchip *flash, uint8_t * buf) mask = getaddrmask(flash); - msg_cinfo("Programming page: "); for (i = 0; i < flash->total_size; i++) { - if ((i & 0x3) == 0) - msg_cinfo("address: 0x%08lx", (unsigned long)i * 1024); - write_sector_jedec_common(flash, buf + i * 1024, dst + i * 1024, 1024, mask); - - if ((i & 0x3) == 0) - msg_cinfo("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b"); } - msg_cinfo("DONE!\n"); return 0; } |