7162063: libsaproc debug print should format size_t correctly on 64bit platform
authorsla
Mon, 23 Apr 2012 13:30:39 +0200
changeset 12499 b34c7373e4a9
parent 12498 961dc4bd60d6
child 12500 6d00ed2fb2ab
7162063: libsaproc debug print should format size_t correctly on 64bit platform Reviewed-by: rbackman, mgronlun, dholmes
hotspot/agent/src/os/linux/ps_core.c
--- a/hotspot/agent/src/os/linux/ps_core.c	Fri Apr 20 14:55:45 2012 +0100
+++ b/hotspot/agent/src/os/linux/ps_core.c	Mon Apr 23 13:30:39 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 = %zd\n", ph->core->map_array[j]->vaddr,
+        print_debug("base = 0x%lx\tsize = %zu\n", ph->core->map_array[j]->vaddr,
                                          ph->core->map_array[j]->memsz);
       }
    }