1.1 --- a/src/share/vm/utilities/events.cpp Wed May 28 12:07:21 2014 -0700 1.2 +++ b/src/share/vm/utilities/events.cpp Thu May 29 09:56:06 2014 -0700 1.3 @@ -82,7 +82,7 @@ 1.4 va_start(ap, format); 1.5 // Save a copy of begin message and log it. 1.6 _buffer.printv(format, ap); 1.7 - Events::log(NULL, "%s", (const char*)_buffer); 1.8 + Events::log(NULL, "%s", _buffer.buffer()); 1.9 va_end(ap); 1.10 } 1.11 } 1.12 @@ -91,6 +91,6 @@ 1.13 if (LogEvents) { 1.14 // Append " done" to the begin message and log it 1.15 _buffer.append(" done"); 1.16 - Events::log(NULL, "%s", (const char*)_buffer); 1.17 + Events::log(NULL, "%s", _buffer.buffer()); 1.18 } 1.19 }