Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index e77799802156726b0630ce26452afc8b47ff53a1..32f54b6979789a7b351fc58aa3cc8175461a9f2e 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -4,6 +4,7 @@ |
#include "src/log.h" |
+#include <inttypes.h> |
#include <cstdarg> |
#include <sstream> |
@@ -284,9 +285,9 @@ void PerfBasicLogger::LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo*, |
return; |
} |
- base::OS::FPrint(perf_output_handle_, "%p %x %.*s\n", |
- code->instruction_start(), code->instruction_size(), length, |
- name); |
+ base::OS::FPrint(perf_output_handle_, "%" PRIxPTR " %x %.*s\n", |
Jarin
2016/04/14 12:16:53
Couldn't you use V8PRIxPTR?
Stefano Sanfilippo
2016/04/14 12:31:54
Done.
|
+ reinterpret_cast<uintptr_t>(code->instruction_start()), |
+ code->instruction_size(), length, name); |
} |
// Low-level logging support. |