hotspot/agent/src/os/linux/ps_proc.c
changeset 6176 4d9030fe341f
parent 5547 f4b087cbb361
child 7415 e7c6833aac14
--- a/hotspot/agent/src/os/linux/ps_proc.c	Wed Jul 28 17:57:43 2010 -0400
+++ b/hotspot/agent/src/os/linux/ps_proc.c	Tue Aug 03 08:13:38 2010 -0400
@@ -253,7 +253,11 @@
     if (nwords > 5 && find_lib(ph, word[5]) == false) {
        intptr_t base;
        lib_info* lib;
+#ifdef _LP64
        sscanf(word[0], "%lx", &base);
+#else
+       sscanf(word[0], "%x", &base);
+#endif
        if ((lib = add_lib_info(ph, word[5], (uintptr_t)base)) == NULL)
           continue; // ignore, add_lib_info prints error