Author: stuge Date: 2009-01-13 15:32:27 +0100 (Tue, 13 Jan 2009) New Revision: 3860
Modified: trunk/util/flashrom/flashrom.c Log: flashrom: Always print address when verification fails, not only with -V.
Signed-off-by: Peter Stuge peter@stuge.se Acked-by: Peter Stuge peter@stuge.se
Modified: trunk/util/flashrom/flashrom.c =================================================================== --- trunk/util/flashrom/flashrom.c 2009-01-12 21:31:14 UTC (rev 3859) +++ trunk/util/flashrom/flashrom.c 2009-01-13 14:32:27 UTC (rev 3860) @@ -186,10 +186,11 @@ 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; }