|
From: <sv...@va...> - 2005-04-25 16:55:52
|
Author: tom
Date: 2005-04-25 17:55:44 +0100 (Mon, 25 Apr 2005)
New Revision: 3568
Modified:
trunk/coregrind/m_aspacemgr/aspacemgr.c
Log:
Use %lu for all length values in debug messages or you will sometimes
get nonense on 64 bit platforms.
Modified: trunk/coregrind/m_aspacemgr/aspacemgr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_aspacemgr/aspacemgr.c 2005-04-25 16:21:17 UTC (rev =
3567)
+++ trunk/coregrind/m_aspacemgr/aspacemgr.c 2005-04-25 16:55:44 UTC (rev =
3568)
@@ -556,7 +556,7 @@
len =3D PGROUNDUP(len);
=20
if (debug)
- VG_(printf)("unmap_range(%p, %d)\n", addr, len);
+ VG_(printf)("unmap_range(%p, %lu)\n", addr, len);
if (0) show_segments("unmap_range(BEFORE)");
end =3D addr+len;
=20
@@ -594,7 +594,7 @@
s->len =3D addr - s->addr;
=20
if (debug)
- VG_(printf)(" case 1: s->len=3D%d\n", s->len);
+ VG_(printf)(" case 1: s->len=3D%lu\n", s->len);
} else if (addr <=3D s->addr && end > s->addr && end < s_end) {
/* this segment's head is truncated by [addr, addr+len)
-> truncate head
@@ -602,7 +602,7 @@
Word delta =3D end - s->addr;
=20
if (debug)
- VG_(printf)(" case 2: s->addr=3D%p s->len=3D%d delta=3D%d\n",=20
+ VG_(printf)(" case 2: s->addr=3D%p s->len=3D%lu delta=3D%d\n",=20
s->addr, s->len, delta);
=20
dump_translations_from(s);
@@ -668,7 +668,7 @@
if (debug)
VG_(printf)(
"\n"
- "map_file_segment(addr=3D%p len=3D%llu prot=3D0x%x flags=3D0x%x=
\n"
+ "map_file_segment(addr=3D%p len=3D%lu prot=3D0x%x flags=3D0x%x\=
n"
" dev=3D0x%4x ino=3D%d off=3D%ld\n"
" filename=3D'%s')\n",
addr, (ULong)len, prot, flags, dev, ino, off, filename);
@@ -780,7 +780,7 @@
static const Bool debug =3D False || mem_debug;
=20
if (debug)
- VG_(printf)("\nmprotect_range(%p, %d, %x)\n", a, len, prot);
+ VG_(printf)("\nmprotect_range(%p, %lu, %x)\n", a, len, prot);
=20
if (0) show_segments( "mprotect_range(before)" );
=20
@@ -821,7 +821,7 @@
=20
if (debug) {
VG_(printf)("\n\n");
- VG_(printf)("find_map_space(%p, %d, %d) ...\n",
+ VG_(printf)("find_map_space(%p, %lu, %d) ...\n",
addr, len, for_client);
}
=20
@@ -923,7 +923,7 @@
ret =3D 0; /* not found */
=20
if (debug)
- VG_(printf)("find_map_space(%p, %d, %d) -> %p\n\n",
+ VG_(printf)("find_map_space(%p, %lu, %d) -> %p\n\n",
addr, len, for_client, ret);
=20
if (fixed) {
|