mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 15:10:53 +00:00
Use gulong for addresses. Bug reported by Martin Reddy.
Mon Jan 9 00:59:21 2006 Soeren Sandmann <sandmann@redhat.com> * process.c (read_maps): Use gulong for addresses. Bug reported by Martin Reddy.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
5a8582b041
commit
5baa137e21
@ -1,3 +1,8 @@
|
|||||||
|
Mon Jan 9 00:59:21 2006 Soeren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
|
* process.c (read_maps): Use gulong for addresses. Bug reported by
|
||||||
|
Martin Reddy.
|
||||||
|
|
||||||
Sun Jan 8 03:22:22 2006 Soeren Sandmann <sandmann@redhat.com>
|
Sun Jan 8 03:22:22 2006 Soeren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* process.c (process_flush_caches): Resurrect this function.
|
* process.c (process_flush_caches): Resurrect this function.
|
||||||
|
|||||||
@ -92,8 +92,8 @@ read_maps (int pid)
|
|||||||
{
|
{
|
||||||
char file[256];
|
char file[256];
|
||||||
int count;
|
int count;
|
||||||
guint start;
|
gulong start;
|
||||||
guint end;
|
gulong end;
|
||||||
guint offset;
|
guint offset;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@ -101,7 +101,7 @@ read_maps (int pid)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
count = sscanf (
|
count = sscanf (
|
||||||
buffer, "%x-%x %*15s %x %*x:%*x %*u %255s",
|
buffer, "%lx-%lx %*15s %x %*x:%*x %*u %255s",
|
||||||
&start, &end, &offset, file);
|
&start, &end, &offset, file);
|
||||||
if (count == 4)
|
if (count == 4)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user