|
From: <sv...@va...> - 2005-09-25 18:00:27
|
Author: njn
Date: 2005-09-25 19:00:25 +0100 (Sun, 25 Sep 2005)
New Revision: 4767
Log:
Don't print unsigned longs as signed ints.
Modified:
branches/ASPACEM/cachegrind/cg_main.c
branches/ASPACEM/massif/ms_main.c
Modified: branches/ASPACEM/cachegrind/cg_main.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
--- branches/ASPACEM/cachegrind/cg_main.c 2005-09-25 17:59:16 UTC (rev 47=
66)
+++ branches/ASPACEM/cachegrind/cg_main.c 2005-09-25 18:00:25 UTC (rev 47=
67)
@@ -984,7 +984,7 @@
l3 =3D ULong_width(Dw_total.a);
=20
/* Make format string, getting width right for numbers */
- VG_(sprintf)(fmt, "%%s %%,%dld", l1);
+ VG_(sprintf)(fmt, "%%s %%,%dllu", l1);
=20
VG_(message)(Vg_UserMsg, fmt, "I refs: ", Ir_total.a);
VG_(message)(Vg_UserMsg, fmt, "I1 misses: ", Ir_total.m1);
@@ -1007,7 +1007,7 @@
D_total.m2 =3D Dr_total.m2 + Dw_total.m2;
=20
/* Make format string, getting width right for numbers */
- VG_(sprintf)(fmt, "%%s %%,%dld (%%,%dld rd + %%,%dld wr)", l1, l2, l=
3);
+ VG_(sprintf)(fmt, "%%s %%,%dllu (%%,%dllu rd + %%,%dllu wr)", l1, l2=
, l3);
=20
VG_(message)(Vg_UserMsg, fmt, "D refs: ",=20
D_total.a, Dr_total.a, Dw_total.a);
Modified: branches/ASPACEM/massif/ms_main.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
--- branches/ASPACEM/massif/ms_main.c 2005-09-25 17:59:16 UTC (rev 4766)
+++ branches/ASPACEM/massif/ms_main.c 2005-09-25 18:00:25 UTC (rev 4767)
@@ -1729,7 +1729,7 @@
print_summary(ULong total_ST, ULong heap_ST, ULong heap_admin_ST,
ULong stack_ST)
{
- VG_(message)(Vg_UserMsg, "Total spacetime: %,ld ms.B", total_ST);
+ VG_(message)(Vg_UserMsg, "Total spacetime: %,llu ms.B", total_ST);
=20
// Heap -------------------------------------------------------------=
-
if (clo_heap)
|