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

Unified Diff: runtime/bin/file_macos.cc

Issue 11312242: Revised CL for customisable logging (replacing printfs). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
Index: runtime/bin/file_macos.cc
===================================================================
--- runtime/bin/file_macos.cc (revision 14977)
+++ runtime/bin/file_macos.cc (working copy)
@@ -13,6 +13,7 @@
#include "bin/builtin.h"
#include "bin/fdutils.h"
+#include "bin/log.h"
class FileHandle {
public:
@@ -44,7 +45,7 @@
const int kBufferSize = 1024;
char error_message[kBufferSize];
strerror_r(errno, error_message, kBufferSize);
- fprintf(stderr, "%s\n", error_message);
+ Log::PrintErr("%s\n", error_message);
}
handle_->set_fd(kClosedFd);
}

Powered by Google App Engine
This is Rietveld 408576698