--- a/hotspot/src/share/vm/utilities/ostream.hpp Fri Jan 29 16:25:10 2016 -0800
+++ b/hotspot/src/share/vm/utilities/ostream.hpp Fri Jan 29 20:57:09 2016 -0500
@@ -27,6 +27,7 @@
#include "memory/allocation.hpp"
#include "runtime/timer.hpp"
+#include "utilities/globalDefinitions.hpp"
class GCId;
DEBUG_ONLY(class ResourceMark;)
@@ -249,7 +250,7 @@
class logStream : public outputStream {
private:
stringStream _current_line;
- void (*_log_func)(const char* fmt, ...);
+ void (*_log_func)(const char* fmt, ...) ATTRIBUTE_PRINTF(1, 2);
public:
void write(const char* s, size_t len);
logStream(void (*log_func)(const char* fmt, ...)) : _log_func(log_func) {}