7133111: libsaproc debug print should be printed as unsigned long to fit large numbers on 64bit platform

Thu, 05 Apr 2012 14:16:23 +0200

author
sla
date
Thu, 05 Apr 2012 14:16:23 +0200
changeset 3700
10c12fb36ed2
parent 3699
a4b63a58d295
child 3704
0cea7f13029e
child 3705
df4cd4aac5c1
child 3706
27dab8a7c762

7133111: libsaproc debug print should be printed as unsigned long to fit large numbers on 64bit platform
Reviewed-by: dcubed, mgronlun, dsamersoff

agent/src/os/linux/ps_core.c file | annotate | diff | comparison | revisions
     1.1 --- a/agent/src/os/linux/ps_core.c	Mon Apr 09 08:38:16 2012 -0700
     1.2 +++ b/agent/src/os/linux/ps_core.c	Thu Apr 05 14:16:23 2012 +0200
     1.3 @@ -440,7 +440,7 @@
     1.4        int j = 0;
     1.5        print_debug("---- sorted virtual address map ----\n");
     1.6        for (j = 0; j < ph->core->num_maps; j++) {
     1.7 -        print_debug("base = 0x%lx\tsize = %d\n", ph->core->map_array[j]->vaddr,
     1.8 +        print_debug("base = 0x%lx\tsize = %zd\n", ph->core->map_array[j]->vaddr,
     1.9                                           ph->core->map_array[j]->memsz);
    1.10        }
    1.11     }

mercurial