|
From: <sv...@va...> - 2005-09-25 17:57:52
|
Author: njn
Date: 2005-09-25 18:57:47 +0100 (Sun, 25 Sep 2005)
New Revision: 4765
Log:
Print longs as longs.
Modified:
trunk/cachegrind/cg_main.c
trunk/massif/ms_main.c
Modified: trunk/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
--- trunk/cachegrind/cg_main.c 2005-09-25 17:27:39 UTC (rev 4764)
+++ trunk/cachegrind/cg_main.c 2005-09-25 17:57:47 UTC (rev 4765)
@@ -976,7 +976,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 %%,%dlld", l1);
=20
VG_(message)(Vg_UserMsg, fmt, "I refs: ", Ir_total.a);
VG_(message)(Vg_UserMsg, fmt, "I1 misses: ", Ir_total.m1);
@@ -999,7 +999,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 %%,%dlld (%%,%dlld rd + %%,%dlld wr)", l1, l2=
, l3);
=20
VG_(message)(Vg_UserMsg, fmt, "D refs: ",=20
D_total.a, Dr_total.a, Dw_total.a);
Modified: trunk/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
--- trunk/massif/ms_main.c 2005-09-25 17:27:39 UTC (rev 4764)
+++ trunk/massif/ms_main.c 2005-09-25 17:57:47 UTC (rev 4765)
@@ -1689,7 +1689,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: %,lld ms.B", total_ST);
=20
// Heap -------------------------------------------------------------=
-
if (clo_heap)
|