7162063: libsaproc debug print should format size_t correctly on 64bit platform

Reviewed-by: rbackman, mgronlun, dholmes
This commit is contained in:
Staffan Larsen 2012-04-23 13:30:39 +02:00
parent 7e36bafdcd
commit ca57fd5c97

View File

@ -440,7 +440,7 @@ static bool sort_map_array(struct ps_prochandle* ph) {
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);
}
}