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

Unified Diff: runtime/bin/file_win.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_win.cc
===================================================================
--- runtime/bin/file_win.cc (revision 14977)
+++ runtime/bin/file_win.cc (working copy)
@@ -11,6 +11,7 @@
#include <sys/stat.h>
#include "bin/builtin.h"
+#include "bin/log.h"
class FileHandle {
public:
@@ -39,7 +40,7 @@
ASSERT(handle_->fd() >= 0);
int err = close(handle_->fd());
if (err != 0) {
- fprintf(stderr, "%s\n", strerror(errno));
+ Log::PrintErr("%s\n", strerror(errno));
}
handle_->set_fd(kClosedFd);
}

Powered by Google App Engine
This is Rietveld 408576698