@@ -836,23 +836,23 @@ void LogMessageOnPrintf(const char *str) {
836836}
837837
838838void 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
872872SignalContext::WriteFlag SignalContext::GetWriteFlag () const {
0 commit comments