Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit d63da57

Browse files
committed
tsan: disable debug output in normal mode
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207954 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent e80ef53 commit d63da57

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/tsan/rtl/tsan_interceptors.cc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,8 +1939,7 @@ static void MlockIsUnsupported() {
19391939
static atomic_uint8_t printed;
19401940
if (atomic_exchange(&printed, 1, memory_order_relaxed))
19411941
return;
1942-
if (flags()->verbosity > 0)
1943-
Printf("INFO: ThreadSanitizer ignores mlock/mlockall/munlock/munlockall\n");
1942+
VPrintf(1, "INFO: ThreadSanitizer ignores mlock/munlock[all]\n");
19441943
}
19451944

19461945
TSAN_INTERCEPTOR(int, mlock, const void *addr, uptr len) {
@@ -2124,12 +2123,12 @@ static void syscall_access_range(uptr pc, uptr p, uptr s, bool write) {
21242123
static void syscall_acquire(uptr pc, uptr addr) {
21252124
TSAN_SYSCALL();
21262125
Acquire(thr, pc, addr);
2127-
Printf("syscall_acquire(%p)\n", addr);
2126+
DPrintf("syscall_acquire(%p)\n", addr);
21282127
}
21292128

21302129
static void syscall_release(uptr pc, uptr addr) {
21312130
TSAN_SYSCALL();
2132-
Printf("syscall_release(%p)\n", addr);
2131+
DPrintf("syscall_release(%p)\n", addr);
21332132
Release(thr, pc, addr);
21342133
}
21352134

@@ -2141,12 +2140,12 @@ static void syscall_fd_close(uptr pc, int fd) {
21412140
static USED void syscall_fd_acquire(uptr pc, int fd) {
21422141
TSAN_SYSCALL();
21432142
FdAcquire(thr, pc, fd);
2144-
Printf("syscall_fd_acquire(%p)\n", fd);
2143+
DPrintf("syscall_fd_acquire(%p)\n", fd);
21452144
}
21462145

21472146
static USED void syscall_fd_release(uptr pc, int fd) {
21482147
TSAN_SYSCALL();
2149-
Printf("syscall_fd_release(%p)\n", fd);
2148+
DPrintf("syscall_fd_release(%p)\n", fd);
21502149
FdRelease(thr, pc, fd);
21512150
}
21522151

0 commit comments

Comments
 (0)