commit | cb5c211a480a4f38cce38b536220f7079ea5256d | [log] [tgz] |
---|---|---|
author | Peter Stuge <peter@stuge.se> | Fri Jun 20 02:58:42 2008 +0000 |
committer | Peter Stuge <peter@stuge.se> | Fri Jun 20 02:58:42 2008 +0000 |
tree | f1c851936f06b8926520843746efc839ae99fae9 | |
parent | b9f617448d532f6b7c1946e722d2d17e5de978b8 [diff] [blame] |
Show expected and read byte on verify failure Corresponding to flashrom svn r261 and coreboot v2 svn r3372. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
diff --git a/flashrom.c b/flashrom.c index 438e843..2dc2de8 100644 --- a/flashrom.c +++ b/flashrom.c
@@ -187,7 +187,8 @@ if (verbose) { printf("0x%08x ", idx); } - printf("FAILED!\n"); + printf("FAILED! Expected=0x%02x, Read=0x%02x\n", + *(buf + idx), *(buf2 + idx)); return 1; }