| Index: base/logging.cc
|
| diff --git a/base/logging.cc b/base/logging.cc
|
| index ed2cdefa5408aad4213690eaf3f35347d89d5e19..c4366d839c0c134e6f442585b698b9c4f22fb1c1 100644
|
| --- a/base/logging.cc
|
| +++ b/base/logging.cc
|
| @@ -609,13 +609,13 @@
|
| }
|
| __android_log_write(priority, "chromium", str_newline.c_str());
|
| #endif
|
| - fwrite(str_newline.data(), str_newline.size(), 1, stderr);
|
| + fprintf(stderr, "%s", str_newline.c_str());
|
| fflush(stderr);
|
| } else if (severity_ >= kAlwaysPrintErrorLevel) {
|
| // When we're only outputting to a log file, above a certain log level, we
|
| // should still output to stderr so that we can better detect and diagnose
|
| // problems with unit tests, especially on the buildbots.
|
| - fwrite(str_newline.data(), str_newline.size(), 1, stderr);
|
| + fprintf(stderr, "%s", str_newline.c_str());
|
| fflush(stderr);
|
| }
|
|
|
| @@ -640,7 +640,7 @@
|
| &num_written,
|
| NULL);
|
| #else
|
| - fwrite(str_newline.data(), str_newline.size(), 1, log_file);
|
| + fprintf(log_file, "%s", str_newline.c_str());
|
| fflush(log_file);
|
| #endif
|
| }
|
|
|