[compiler-rt] 80b92db - [profile][fuchsia] Don't include extra NUL in log messages
Roland McGrath via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 23 15:16:40 PDT 2021
Author: Roland McGrath
Date: 2021-09-23T15:16:31-07:00
New Revision: 80b92db02c5aec4e92b2df1492e8268a3239de26
URL: https://github.com/llvm/llvm-project/commit/80b92db02c5aec4e92b2df1492e8268a3239de26
DIFF: https://github.com/llvm/llvm-project/commit/80b92db02c5aec4e92b2df1492e8268a3239de26.diff
LOG: [profile][fuchsia] Don't include extra NUL in log messages
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D110361
Added:
Modified:
compiler-rt/lib/profile/InstrProfilingPlatformFuchsia.c
Removed:
################################################################################
diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformFuchsia.c b/compiler-rt/lib/profile/InstrProfilingPlatformFuchsia.c
index 7de6aa83f8afa..f00811070d34d 100644
--- a/compiler-rt/lib/profile/InstrProfilingPlatformFuchsia.c
+++ b/compiler-rt/lib/profile/InstrProfilingPlatformFuchsia.c
@@ -52,7 +52,7 @@ static inline void lprofWrite(const char *fmt, ...) {
int ret = vsnprintf(s, sizeof(s), fmt, ap);
va_end(ap);
- __sanitizer_log_write(s, ret + 1);
+ __sanitizer_log_write(s, ret);
}
struct lprofVMOWriterCtx {
More information about the llvm-commits
mailing list