changeset 25945:cb5dcc388aff

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
author dsamersoff
date Mon, 11 Aug 2014 04:37:19 -0700
parents d1161ea75e14
children 8f94ddc3729a
files hotspot/agent/src/os/solaris/proc/saproc.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }