Chromium Code Reviews| Index: runtime/bin/utils_win.cc |
| =================================================================== |
| --- runtime/bin/utils_win.cc (revision 14977) |
| +++ runtime/bin/utils_win.cc (working copy) |
| @@ -4,6 +4,7 @@ |
| #include <errno.h> |
| +#include "bin/log.h" |
| #include "bin/utils.h" |
|
Ivan Posva
2012/11/17 01:13:42
ditto
gram
2012/11/19 17:38:56
Done.
|
| static void FormatMessageIntoBuffer(DWORD code, |
| @@ -19,7 +20,7 @@ |
| NULL); |
| if (message_size == 0) { |
| if (GetLastError() != ERROR_INSUFFICIENT_BUFFER) { |
| - fprintf(stderr, "FormatMessage failed %d\n", GetLastError()); |
| + Log::PrintErr("FormatMessage failed %d\n", GetLastError()); |
| } |
| snprintf(buffer, buffer_length, "OS Error %d", code); |
| } |