[compiler-rt] 8af4725 - tsan: fix Printf format string
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 11 01:22:07 PDT 2021
Author: Dmitry Vyukov
Date: 2021-08-11T10:22:02+02:00
New Revision: 8af47255766e71cb3f8aad2f631046c1834f2218
URL: https://github.com/llvm/llvm-project/commit/8af47255766e71cb3f8aad2f631046c1834f2218
DIFF: https://github.com/llvm/llvm-project/commit/8af47255766e71cb3f8aad2f631046c1834f2218.diff
LOG: tsan: fix Printf format string
Reported on D107745
Reported-by: Wolfgang Pieb (wolfgangp)
Reviewed By: melver
Differential Revision: https://reviews.llvm.org/D107881
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_platform.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform.h b/compiler-rt/lib/tsan/rtl/tsan_platform.h
index ffd68d0ccc86e..a944fdcb150aa 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform.h
@@ -923,7 +923,7 @@ struct RestoreAddrImpl {
return addr | (p & ~(ind_lsb - 1));
}
}
- Printf("ThreadSanitizer: failed to restore address %p\n", addr);
+ Printf("ThreadSanitizer: failed to restore address 0x%zx\n", addr);
Die();
}
};
More information about the llvm-commits
mailing list