From 5f2e30c9ed04c617d5af6b5fed22fa82115c8512 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Fri, 20 Jun 2008 02:58:42 +0000 Subject: [PATCH] flashrom: Show expected and read byte on verify failure. Trivial. Signed-off-by: Peter Stuge Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3372 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/flashrom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/flashrom/flashrom.c b/util/flashrom/flashrom.c index 438e843ded..2dc2de81a4 100644 --- a/util/flashrom/flashrom.c +++ b/util/flashrom/flashrom.c @@ -187,7 +187,8 @@ int verify_flash(struct flashchip *flash, uint8_t *buf) if (verbose) { printf("0x%08x ", idx); } - printf("FAILED!\n"); + printf("FAILED! Expected=0x%02x, Read=0x%02x\n", + *(buf + idx), *(buf2 + idx)); return 1; }