diff --git a/programs/bench.c b/programs/bench.c index 14b36b48..fcd674aa 100644 --- a/programs/bench.c +++ b/programs/bench.c @@ -351,14 +351,21 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize, crcCheck = XXH64(resultBuffer, srcSize, 0); if (crcOrig!=crcCheck) { - unsigned u; - unsigned eBlockSize = (unsigned)(MIN(65536*2, blockSize)); + size_t u; DISPLAY("\n!!! WARNING !!! %14s : Invalid Checksum : %x != %x\n", displayName, (unsigned)crcOrig, (unsigned)crcCheck); for (u=0; u u) break; + bacc += blockTable[bn].srcSize; + } + printf("(block %u, pos %u) \n", bn, (U32)(u - bacc)); break; } }