Index: runtime/platform/assert.cc |
diff --git a/runtime/platform/assert.cc b/runtime/platform/assert.cc |
index c5b91e714f3bbb6c4a1ea6c73c56b562a38ffab4..9900e1a73c22816f8e420f187f1e58a988337781 100644 |
--- a/runtime/platform/assert.cc |
+++ b/runtime/platform/assert.cc |
@@ -34,8 +34,8 @@ void DynamicAssertionHelper::Fail(const char* format, ...) { |
arguments); |
va_end(arguments); |
- // Print the buffer on stderr. |
- fprintf(stderr, "%s\n", buffer); |
+ // Print the buffer on stderr and/or syslog. |
+ OS::PrintErr("%s\n", buffer); |
fflush(stderr); |
siva
2016/07/08 16:25:20
OS::PrintErr does a fflush of the stream, this ffl
rmacnak
2016/07/08 18:08:58
Done.
|
// In case of failed assertions, abort right away. Otherwise, wait |