8049049: Unportable format string argument mismatch in hotspot/agent/src/os/solaris/proc/saproc.cpp

Cast arguments on printing

Reviewed-by: dholmes, sspitsyn, jbachorik
This commit is contained in:
Dmitry Samersoff 2014-08-11 04:37:19 -07:00
parent 29ec2196ef
commit 2649b6be70

View File

@ -314,7 +314,7 @@ static void * pathmap_dlopen(const char * name, int mode) {
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;
}