Skip to content

Commit

Permalink
guard use of printf with #ifndef NO_PRINTF in csmith_minimal.h (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightguth committed Jul 17, 2020
1 parent d0b585a commit 47b6940
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/csmith_minimal.h
Expand Up @@ -102,9 +102,11 @@ transparent_crc_bytes (char *ptr, int nbytes, char* vname, int flag)
for (i=0; i<nbytes; i++) {
crc32_context += ptr[i];
}
#ifndef NO_PRINTF
if (flag) {
printf("...checksum after hashing %s : %lX\n", vname, crc32_context ^ 0xFFFFFFFFUL);
}
#endif
}

#ifdef NO_PRINTF
Expand Down

0 comments on commit 47b6940

Please sign in to comment.