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

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3860 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Peter Stuge 2009-01-13 14:32:27 +00:00
parent e31a8d5c95
commit 3462462b2a
1 changed files with 5 additions and 4 deletions

View File

@ -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;
} }