aboutsummaryrefslogtreecommitdiff
path: root/src/log-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log-utils.h')
-rw-r--r--src/log-utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/log-utils.h b/src/log-utils.h
index b165b3ee..69fa6f90 100644
--- a/src/log-utils.h
+++ b/src/log-utils.h
@@ -32,7 +32,7 @@ class Log {
return FLAG_log || FLAG_log_api || FLAG_log_code || FLAG_log_gc ||
FLAG_log_handles || FLAG_log_suspect || FLAG_ll_prof ||
FLAG_perf_basic_prof || FLAG_perf_prof ||
- FLAG_log_internal_timer_events || FLAG_prof_cpp;
+ FLAG_log_internal_timer_events || FLAG_prof_cpp || FLAG_trace_ic;
}
// Frees all resources acquired in Initialize and Open... functions.
@@ -110,9 +110,9 @@ class Log {
// Implementation of writing to a log file.
int WriteToFile(const char* msg, int length) {
- DCHECK(output_handle_ != NULL);
+ DCHECK_NOT_NULL(output_handle_);
size_t rv = fwrite(msg, 1, length, output_handle_);
- DCHECK(static_cast<size_t>(length) == rv);
+ DCHECK_EQ(length, rv);
USE(rv);
fflush(output_handle_);
return length;