From 3462462b2a140c5a9f9dfcf93f2590cc6a37274d Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Tue, 13 Jan 2009 14:32:27 +0000 Subject: [PATCH] flashrom: Always print address when verification fails, not only with -V. Signed-off-by: Peter Stuge Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3860 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/flashrom.c | 9 +++++---- 1 file 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; }