hotspot/src/share/vm/runtime/thread.cpp
changeset 24424 2658d7834c6e
parent 24352 9ba9e99b1ba7
child 24844 d1345c68cea9
child 24831 e4df2f64bb2e
--- a/hotspot/src/share/vm/runtime/thread.cpp	Fri May 09 08:34:22 2014 -0700
+++ b/hotspot/src/share/vm/runtime/thread.cpp	Fri May 09 16:50:54 2014 -0400
@@ -112,6 +112,8 @@
 #include "runtime/rtmLocking.hpp"
 #endif
 
+PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
+
 #ifdef DTRACE_ENABLED
 
 // Only bother with this argument setup if dtrace is available
@@ -4273,7 +4275,7 @@
 // Threads::print_on() is called at safepoint by VM_PrintThreads operation.
 void Threads::print_on(outputStream* st, bool print_stacks, bool internal_format, bool print_concurrent_locks) {
   char buf[32];
-  st->print_cr(os::local_time_string(buf, sizeof(buf)));
+  st->print_cr("%s", os::local_time_string(buf, sizeof(buf)));
 
   st->print_cr("Full thread dump %s (%s %s):",
                 Abstract_VM_Version::vm_name(),