|
From: <sv...@va...> - 2005-05-03 18:16:50
|
Author: tom
Date: 2005-05-03 19:16:12 +0100 (Tue, 03 May 2005)
New Revision: 3608
Modified:
trunk/memcheck/mac_needs.c
Log:
Don't truncate addresses in error reports.
Modified: trunk/memcheck/mac_needs.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/memcheck/mac_needs.c 2005-05-03 17:45:20 UTC (rev 3607)
+++ trunk/memcheck/mac_needs.c 2005-05-03 18:16:12 UTC (rev 3608)
@@ -219,19 +219,20 @@
switch (ai->akind) {
case Stack:=20
VG_(message)(Vg_UserMsg,=20
- " Address 0x%x is on thread %d's stack",=20
- a, ai->stack_tid);
+ " Address 0x%lx is on thread %d's stack",=20
+ (ULong)a, ai->stack_tid);
break;
case Unknown:
if (ai->maybe_gcc) {
VG_(message)(Vg_UserMsg,=20
- " Address 0x%x is just below %%esp. Possibly a bug in GC=
C/G++",
- a);
+ " Address 0x%lx is just below %%esp. Possibly a bug in G=
CC/G++",
+ (ULong)a);
VG_(message)(Vg_UserMsg,=20
" v 2.96 or 3.0.X. To suppress, use: --workaround-gcc29=
6-bugs=3Dyes");
} else {
VG_(message)(Vg_UserMsg,=20
- " Address 0x%x is not stack'd, malloc'd or (recently) fre=
e'd",a);
+ " Address 0x%lx is not stack'd, malloc'd or (recently) fr=
ee'd",
+ (ULong)a);
}
break;
case Freed: case Mallocd: case UserG: case Mempool: {
@@ -257,8 +258,8 @@
relative =3D "inside";
}
VG_(message)(Vg_UserMsg,=20
- " Address 0x%x is %llu bytes %s a %s of size %d %s",
- a, (ULong)delta, relative, kind,
+ " Address 0x%lx is %llu bytes %s a %s of size %d %s",
+ (ULong)a, (ULong)delta, relative, kind,
ai->blksize,
ai->akind=3D=3DMallocd ? "alloc'd"=20
: ai->akind=3D=3DFreed ? "free'd"=20
|