mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
Some cosmetic cleanups in the flashrom code and output
Corresponding to flashrom svn r151 and coreboot v2 svn r2873. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
This commit is contained in:
4
jedec.c
4
jedec.c
@ -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