8144657: Invalid format specifiers in jvmci trace messages
authormikael
Fri, 04 Dec 2015 13:36:10 -0800
changeset 35088 2a2f26afac41
parent 35084 5b34a4ae0f58
child 35089 b18ade6f6c41
8144657: Invalid format specifiers in jvmci trace messages Reviewed-by: kvn
hotspot/src/cpu/sparc/vm/jvmciCodeInstaller_sparc.cpp
--- a/hotspot/src/cpu/sparc/vm/jvmciCodeInstaller_sparc.cpp	Fri Dec 04 14:06:38 2015 +0100
+++ b/hotspot/src/cpu/sparc/vm/jvmciCodeInstaller_sparc.cpp	Fri Dec 04 13:36:10 2015 -0800
@@ -73,7 +73,7 @@
     NativeMovConstReg32* move = nativeMovConstReg32_at(pc);
     narrowKlass narrowOop = record_narrow_metadata_reference(constant, CHECK);
     move->set_data((intptr_t)narrowOop);
-    TRACE_jvmci_3("relocating (narrow metaspace constant) at %p/%p", pc, narrowOop);
+    TRACE_jvmci_3("relocating (narrow metaspace constant) at " PTR_FORMAT "/0x%x", p2i(pc), narrowOop);
 #else
     JVMCI_ERROR("compressed Klass* on 32bit");
 #endif
@@ -81,7 +81,7 @@
     NativeMovConstReg* move = nativeMovConstReg_at(pc);
     Metadata* reference = record_metadata_reference(constant, CHECK);
     move->set_data((intptr_t)reference);
-    TRACE_jvmci_3("relocating (metaspace constant) at %p/%p", pc, reference);
+    TRACE_jvmci_3("relocating (metaspace constant) at " PTR_FORMAT "/" PTR_FORMAT, p2i(pc), p2i(reference));
   }
 }