Some cosmetic cleanups in the flashrom code and output.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2873 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -281,12 +281,12 @@ int write_jedec(struct flashchip *flash, uint8_t *buf)
|
||||
// dumb check if erase was successful.
|
||||
for (i = 0; i < total_size; i++) {
|
||||
if (bios[i] != (uint8_t) 0xff) {
|
||||
printf("ERASE FAILED @%d, val %02x\n", i, bios[i]);
|
||||
printf("ERASE FAILED @%d, val %02x!\n", i, bios[i]);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
printf("Programming Page: ");
|
||||
printf("Programming page: ");
|
||||
for (i = 0; i < total_size / page_size; i++) {
|
||||
printf("%04d at address: 0x%08x", i, i * page_size);
|
||||
write_page_write_jedec(bios, buf + i * page_size,
|
||||
|
Reference in New Issue
Block a user