Index: src/log.cc |
=================================================================== |
--- src/log.cc (revision 1370) |
+++ src/log.cc (working copy) |
@@ -380,7 +380,8 @@ |
// Write the log message to the log file currently opened. |
void LogMessageBuilder::WriteToLogFile() { |
ASSERT(pos_ <= Logger::kMessageBufferSize); |
- fwrite(Logger::message_buffer_, 1, pos_, Logger::logfile_); |
+ size_t rv = fwrite(Logger::message_buffer_, 1, pos_, Logger::logfile_); |
+ ASSERT(rv == static_cast<size_t>(pos_)); |
} |
#endif |