diff options
author | Peter Stuge <peter@stuge.se> | 2009-01-13 14:32:27 +0000 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2009-01-13 14:32:27 +0000 |
commit | f9ad0bb5c118af6dda6b9a96e931e59b42b617d2 (patch) | |
tree | 368f4a26f2e9ce4ccb138fa49cb0b9d77b41d67e | |
parent | 5807206cfe469be9e1bf0cfc079b583a2904a8ce (diff) | |
download | ast2050-flashrom-f9ad0bb5c118af6dda6b9a96e931e59b42b617d2.zip ast2050-flashrom-f9ad0bb5c118af6dda6b9a96e931e59b42b617d2.tar.gz |
Always print address when verification fails, not only with -V
Corresponding to flashrom svn r381 and coreboot v2 svn r3860.
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
-rw-r--r-- | flashrom.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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; } |