diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc index c7761931e074..8e1d6c7d5f5c 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc @@ -228,7 +228,11 @@ int Finalize(ThreadState *thr) { if (ctx->nreported) { failed = true; +#ifndef TSAN_GO TsanPrintf("ThreadSanitizer: reported %d warnings\n", ctx->nreported); +#else + TsanPrintf("Found %d data race(s)\n", ctx->nreported); +#endif } if (ctx->nmissed_expected) {