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>
diff --git a/flashrom.c b/flashrom.c
index 9c8db6e..f613f8a 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -186,10 +186,11 @@
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;
}