summaryrefslogtreecommitdiff
path: root/util/flashrom
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2009-01-13 14:32:27 +0000
committerPeter Stuge <peter@stuge.se>2009-01-13 14:32:27 +0000
commit3462462b2a140c5a9f9dfcf93f2590cc6a37274d (patch)
treeece246a398ce8b68e7af3b0fd66fcaee3ded56b4 /util/flashrom
parente31a8d5c959abd8f6f1c0fdef9249ec99fed7602 (diff)
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
Diffstat (limited to 'util/flashrom')
-rw-r--r--util/flashrom/flashrom.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/util/flashrom/flashrom.c b/util/flashrom/flashrom.c
index 9c8db6e6bd..f613f8a071 100644
--- a/util/flashrom/flashrom.c
+++ b/util/flashrom/flashrom.c
@@ -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;
}