diff options
author | Peter Stuge <peter@stuge.se> | 2008-06-20 02:58:42 +0000 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2008-06-20 02:58:42 +0000 |
commit | cb5c211a480a4f38cce38b536220f7079ea5256d (patch) | |
tree | f1c851936f06b8926520843746efc839ae99fae9 | |
parent | b9f617448d532f6b7c1946e722d2d17e5de978b8 (diff) | |
download | flashrom-cb5c211a480a4f38cce38b536220f7079ea5256d.tar.gz flashrom-cb5c211a480a4f38cce38b536220f7079ea5256d.tar.bz2 flashrom-cb5c211a480a4f38cce38b536220f7079ea5256d.zip |
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>
-rw-r--r-- | flashrom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c index 438e843de..2dc2de81a 100644 --- a/flashrom.c +++ b/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; } |