When fstests finds a miscompare it tries to dump the corrupted bytes from the buffer, but due to an incorrect comparism actully dumps the correct part of it. Signed-off-by: Christoph Hellwig <hch@xxxxxx> diff --git a/src/fstest.c b/src/fstest.c index 2e92fd8..f7e2d3e 100644 --- a/src/fstest.c +++ b/src/fstest.c @@ -73,7 +73,7 @@ static void check_buffer(uchar *buf, int loop, int child, int fnum, int ofs) for (j=0;j<MIN(20, block_size-i);j++) { printf("%02x ", buf[j+i]); } - for (j=i;buf[j] == buf2[j] && j<block_size;j++) ; + for (j=i;buf[j] != buf2[j] && j<block_size;j++) ; printf("Corruption length: %d\n", j - i); printf("\n"); exit(1); -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html