7133111: libsaproc debug print should be printed as unsigned long to fit large numbers on 64bit platform
authorsla
Thu, 05 Apr 2012 14:16:23 +0200
changeset 12368 19518d8a439a
parent 12367 06ddd0089d39
child 12372 ef470f56f6ee
child 12373 09835f62dc29
child 12374 351cb50bd097
7133111: libsaproc debug print should be printed as unsigned long to fit large numbers on 64bit platform Reviewed-by: dcubed, mgronlun, dsamersoff
hotspot/agent/src/os/linux/ps_core.c
--- a/hotspot/agent/src/os/linux/ps_core.c	Mon Apr 09 08:38:16 2012 -0700
+++ b/hotspot/agent/src/os/linux/ps_core.c	Thu Apr 05 14:16:23 2012 +0200
@@ -440,7 +440,7 @@
       int j = 0;
       print_debug("---- sorted virtual address map ----\n");
       for (j = 0; j < ph->core->num_maps; j++) {
-        print_debug("base = 0x%lx\tsize = %d\n", ph->core->map_array[j]->vaddr,
+        print_debug("base = 0x%lx\tsize = %zd\n", ph->core->map_array[j]->vaddr,
                                          ph->core->map_array[j]->memsz);
       }
    }