Index: src/log.h |
diff --git a/src/log.h b/src/log.h |
index 26dcd71cb3b5b67a773893f6f957f0555e02483d..0c3d277c8e89ab644d00ffe6c4033d1f5c3a8aa6 100644 |
--- a/src/log.h |
+++ b/src/log.h |
@@ -8,6 +8,7 @@ |
#include <string> |
#include "src/allocation.h" |
+#include "src/base/compiler-specific.h" |
#include "src/base/platform/elapsed-timer.h" |
#include "src/base/platform/platform.h" |
#include "src/objects.h" |
@@ -354,7 +355,7 @@ class Logger { |
// Emits a profiler tick event. Used by the profiler thread. |
void TickEvent(TickSample* sample, bool overflow); |
- void ApiEvent(const char* name, ...); |
+ PRINTF_FORMAT(2, 3) void ApiEvent(const char* format, ...); |
// Logs a StringEvent regardless of whether FLAG_log is true. |
void UncheckedStringEvent(const char* name, const char* value); |