diff options
Diffstat (limited to 'compiler-rt/lib/xray')
-rw-r--r-- | compiler-rt/lib/xray/xray_inmemory_log.cc | 12 | ||||
-rw-r--r-- | compiler-rt/lib/xray/xray_interface.cc | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/compiler-rt/lib/xray/xray_inmemory_log.cc b/compiler-rt/lib/xray/xray_inmemory_log.cc index d00e393162a..a93972df3b8 100644 --- a/compiler-rt/lib/xray/xray_inmemory_log.cc +++ b/compiler-rt/lib/xray/xray_inmemory_log.cc @@ -61,7 +61,7 @@ static void retryingWriteAll(int Fd, char *Begin, if (Written < 0) { if (errno == EINTR) continue; // Try again. - Report("Failed to write; errno = %d", errno); + Report("Failed to write; errno = %d\n", errno); return; } TotalBytes -= Written; @@ -81,7 +81,7 @@ retryingReadSome(int Fd, char *Begin, char *End) XRAY_NEVER_INSTRUMENT { if (BytesRead == -1) { if (errno == EINTR) continue; - Report("Read error; errno = %d", errno); + Report("Read error; errno = %d\n", errno); return std::make_pair(TotalBytesRead, false); } @@ -168,14 +168,14 @@ void __xray_InMemoryRawLog(int32_t FuncId, sizeof(TmpFilename) - 10); if (static_cast<size_t>((E + 6) - TmpFilename) > (sizeof(TmpFilename) - 1)) { - Report("XRay log file base too long: %s", flags()->xray_logfile_base); + Report("XRay log file base too long: %s\n", flags()->xray_logfile_base); return -1; } internal_strncat(TmpFilename, TmpWildcardPattern, sizeof(TmpWildcardPattern) - 1); int Fd = mkstemp(TmpFilename); if (Fd == -1) { - Report("XRay: Failed opening temporary file '%s'; not logging events.", + Report("XRay: Failed opening temporary file '%s'; not logging events.\n", TmpFilename); return -1; } @@ -193,7 +193,7 @@ void __xray_InMemoryRawLog(int32_t FuncId, &CPUFrequency)) { CPUFrequency *= 1000; } else { - Report("Unable to determine CPU frequency for TSC accounting."); + Report("Unable to determine CPU frequency for TSC accounting.\n"); } #elif defined(__arm__) || defined(__aarch64__) // There is no instruction like RDTSCP in user mode on ARM. ARM's CP15 does @@ -248,7 +248,7 @@ void __xray_InMemoryRawLog(int32_t FuncId, timespec TS; int result = clock_gettime(CLOCK_REALTIME, &TS); if (result != 0) { - Report("clock_gettime() returned %d, errno=%d.", result, int(errno)); + Report("clock_gettime() returned %d, errno=%d.\n", result, int(errno)); TS.tv_sec = 0; TS.tv_nsec = 0; } diff --git a/compiler-rt/lib/xray/xray_interface.cc b/compiler-rt/lib/xray/xray_interface.cc index 60a5c77fe0c..f2c8074a578 100644 --- a/compiler-rt/lib/xray/xray_interface.cc +++ b/compiler-rt/lib/xray/xray_interface.cc @@ -148,7 +148,7 @@ XRayPatchingStatus ControlPatching(bool Enable) XRAY_NEVER_INSTRUMENT { const uint64_t PageSize = GetPageSizeCached(); if ((PageSize == 0) || ((PageSize & (PageSize - 1)) != 0)) { - Report("System page size is not a power of two: %lld", PageSize); + Report("System page size is not a power of two: %lld\n", PageSize); return XRayPatchingStatus::FAILED; } @@ -188,7 +188,7 @@ XRayPatchingStatus ControlPatching(bool Enable) XRAY_NEVER_INSTRUMENT { Success = patchFunctionTailExit(Enable, FuncId, Sled); break; default: - Report("Unsupported sled kind: %d", int(Sled.Kind)); + Report("Unsupported sled kind: %d\n", int(Sled.Kind)); continue; } (void)Success; |