1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

Always print address when verification fails, not only with -V

Corresponding to flashrom svn r381 and coreboot v2 svn r3860.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
This commit is contained in:
Peter Stuge 2009-01-13 14:32:27 +00:00
parent 5807206cfe
commit f9ad0bb5c1

View File

@ -186,10 +186,11 @@ int verify_flash(struct flashchip *flash, uint8_t *buf)
printf("0x%08x", idx);
if (*(buf2 + idx) != *(buf + idx)) {
if (verbose) {
printf("0x%08x ", idx);
}
printf("FAILED! Expected=0x%02x, Read=0x%02x\n",
if (verbose)
printf("0x%08x FAILED!", idx);
else
printf("FAILED at 0x%08x!", idx);
printf(" Expected=0x%02x, Read=0x%02x\n",
*(buf + idx), *(buf2 + idx));
return 1;
}