1.1 --- a/src/share/vm/compiler/compileBroker.cpp Wed May 28 12:07:21 2014 -0700 1.2 +++ b/src/share/vm/compiler/compileBroker.cpp Thu May 29 09:56:06 2014 -0700 1.3 @@ -206,7 +206,7 @@ 1.4 void log_nmethod(JavaThread* thread, nmethod* nm) { 1.5 log(thread, "nmethod %d%s " INTPTR_FORMAT " code ["INTPTR_FORMAT ", " INTPTR_FORMAT "]", 1.6 nm->compile_id(), nm->is_osr_method() ? "%" : "", 1.7 - nm, nm->code_begin(), nm->code_end()); 1.8 + p2i(nm), p2i(nm->code_begin()), p2i(nm->code_end())); 1.9 } 1.10 1.11 void log_failure(JavaThread* thread, CompileTask* task, const char* reason, const char* retry_message) { 1.12 @@ -1791,7 +1791,7 @@ 1.13 if (xtty != NULL) { 1.14 ttyLocker ttyl; 1.15 // Record any per thread log files 1.16 - xtty->elem("thread_logfile thread='%d' filename='%s'", thread_id, file_name); 1.17 + xtty->elem("thread_logfile thread='" INTX_FORMAT "' filename='%s'", thread_id, file_name); 1.18 } 1.19 return; 1.20 } 1.21 @@ -1822,7 +1822,7 @@ 1.22 if (_should_block) { 1.23 #ifndef PRODUCT 1.24 if (PrintCompilation && (Verbose || WizardMode)) 1.25 - tty->print_cr("compiler thread " INTPTR_FORMAT " poll detects block request", Thread::current()); 1.26 + tty->print_cr("compiler thread " INTPTR_FORMAT " poll detects block request", p2i(Thread::current())); 1.27 #endif 1.28 ThreadInVMfromNative tivfn(JavaThread::current()); 1.29 } 1.30 @@ -1839,7 +1839,7 @@ 1.31 CodeCache::print_summary(&s, detailed); 1.32 } 1.33 ttyLocker ttyl; 1.34 - tty->print(s.as_string()); 1.35 + tty->print("%s", s.as_string()); 1.36 } 1.37 1.38 // ------------------------------------------------------------------ 1.39 @@ -2044,7 +2044,7 @@ 1.40 // Lock to prevent tearing 1.41 ttyLocker ttyl; 1.42 xtty->begin_elem("code_cache_full"); 1.43 - xtty->print(s.as_string()); 1.44 + xtty->print("%s", s.as_string()); 1.45 xtty->stamp(); 1.46 xtty->end_elem(); 1.47 }