mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 15:33:42 +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:
parent
5807206cfe
commit
f9ad0bb5c1
@ -186,10 +186,11 @@ int verify_flash(struct flashchip *flash, uint8_t *buf)
|
|||||||
printf("0x%08x", idx);
|
printf("0x%08x", idx);
|
||||||
|
|
||||||
if (*(buf2 + idx) != *(buf + idx)) {
|
if (*(buf2 + idx) != *(buf + idx)) {
|
||||||
if (verbose) {
|
if (verbose)
|
||||||
printf("0x%08x ", idx);
|
printf("0x%08x FAILED!", idx);
|
||||||
}
|
else
|
||||||
printf("FAILED! Expected=0x%02x, Read=0x%02x\n",
|
printf("FAILED at 0x%08x!", idx);
|
||||||
|
printf(" Expected=0x%02x, Read=0x%02x\n",
|
||||||
*(buf + idx), *(buf2 + idx));
|
*(buf + idx), *(buf2 + idx));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user