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
--- 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;
}