Skip to content

Commit 38b7749

Browse files
committed
Formatting fixes
1 parent 96dc7b0 commit 38b7749

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -836,23 +836,23 @@ void LogMessageOnPrintf(const char *str) {
836836
}
837837

838838
void LogFullErrorReport(const char *buffer) {
839-
#if !SANITIZER_GO
839+
# if !SANITIZER_GO
840840
// Log with os_log_error. This will make it into the crash log.
841-
if (internal_strncmp(SanitizerToolName, "AddressSanitizer",
842-
sizeof("AddressSanitizer") - 1) == 0)
843-
os_log_error(OS_LOG_DEFAULT, "Address Sanitizer reported a failure.");
844-
else if (internal_strncmp(SanitizerToolName, "UndefinedBehaviorSanitizer",
845-
sizeof("UndefinedBehaviorSanitizer") - 1) == 0)
846-
os_log_error(OS_LOG_DEFAULT,
847-
"Undefined Behavior Sanitizer reported a failure.");
848-
else if (internal_strncmp(SanitizerToolName, "ThreadSanitizer",
849-
sizeof("ThreadSanitizer") - 1) == 0)
850-
os_log_error(OS_LOG_DEFAULT, "Thread Sanitizer reported a failure.");
851-
else
852-
os_log_error(OS_LOG_DEFAULT, "Sanitizer tool reported a failure.");
853-
854-
if (common_flags()->log_to_syslog)
855-
os_log_error(OS_LOG_DEFAULT, "Consult syslog for more information.");
841+
if (internal_strncmp(SanitizerToolName, "AddressSanitizer",
842+
sizeof("AddressSanitizer") - 1) == 0)
843+
os_log_error(OS_LOG_DEFAULT, "Address Sanitizer reported a failure.");
844+
else if (internal_strncmp(SanitizerToolName, "UndefinedBehaviorSanitizer",
845+
sizeof("UndefinedBehaviorSanitizer") - 1) == 0)
846+
os_log_error(OS_LOG_DEFAULT,
847+
"Undefined Behavior Sanitizer reported a failure.");
848+
else if (internal_strncmp(SanitizerToolName, "ThreadSanitizer",
849+
sizeof("ThreadSanitizer") - 1) == 0)
850+
os_log_error(OS_LOG_DEFAULT, "Thread Sanitizer reported a failure.");
851+
else
852+
os_log_error(OS_LOG_DEFAULT, "Sanitizer tool reported a failure.");
853+
854+
if (common_flags()->log_to_syslog)
855+
os_log_error(OS_LOG_DEFAULT, "Consult syslog for more information.");
856856

857857
// Log to syslog.
858858
// The logging on OS X may call pthread_create so we need the threading
@@ -866,7 +866,7 @@ void LogFullErrorReport(const char *buffer) {
866866
WriteToSyslog(buffer);
867867

868868
// The report is added to CrashLog as part of logging all of Printf output.
869-
#endif
869+
# endif // !SANITIZER_GO
870870
}
871871

872872
SignalContext::WriteFlag SignalContext::GetWriteFlag() const {

0 commit comments

Comments
 (0)