Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: runtime/platform/assert.cc

Issue 2132833002: Make core snapshot word-size portable again. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: no size classes Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/clustered_snapshot.h » ('j') | runtime/vm/clustered_snapshot.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/assert.cc
diff --git a/runtime/platform/assert.cc b/runtime/platform/assert.cc
index c5b91e714f3bbb6c4a1ea6c73c56b562a38ffab4..ff71e3f78c8cefb827bfb0419fee4cb8fe02d668 100644
--- a/runtime/platform/assert.cc
+++ b/runtime/platform/assert.cc
@@ -34,9 +34,8 @@ void DynamicAssertionHelper::Fail(const char* format, ...) {
arguments);
va_end(arguments);
- // Print the buffer on stderr.
- fprintf(stderr, "%s\n", buffer);
- fflush(stderr);
+ // Print the buffer on stderr and/or syslog.
+ OS::PrintErr("%s\n", buffer);
// In case of failed assertions, abort right away. Otherwise, wait
// until the program is exiting before producing a non-zero exit
« no previous file with comments | « no previous file | runtime/vm/clustered_snapshot.h » ('j') | runtime/vm/clustered_snapshot.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698