8049049: Unportable format string argument mismatch in hotspot/agent/src/os/solaris/proc/saproc.cpp
authordsamersoff
Mon, 11 Aug 2014 04:37:19 -0700
changeset 25945 cb5dcc388aff
parent 25938 d1161ea75e14
child 25947 8f94ddc3729a
8049049: Unportable format string argument mismatch in hotspot/agent/src/os/solaris/proc/saproc.cpp Summary: Cast arguments on printing Reviewed-by: dholmes, sspitsyn, jbachorik
hotspot/agent/src/os/solaris/proc/saproc.cpp
--- a/hotspot/agent/src/os/solaris/proc/saproc.cpp	Fri Aug 08 11:36:48 2014 -0700
+++ b/hotspot/agent/src/os/solaris/proc/saproc.cpp	Mon Aug 11 04:37:19 2014 -0700
@@ -314,7 +314,7 @@
     handle = dlopen(name, mode);
   }
   if (_libsaproc_debug) {
-    printf("libsaproc DEBUG: pathmap_dlopen %s return 0x%x\n", name, handle);
+    printf("libsaproc DEBUG: pathmap_dlopen %s return 0x%lx\n", name, (unsigned long) handle);
   }
   return handle;
 }