From: Nicholas Nethercote Date: Sun, 25 Sep 2005 17:57:47 +0000 (+0000) Subject: Print longs as longs. X-Git-Tag: svn/VALGRIND_3_1_0~448 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=531b28734e8dea50b15246e94e815d87d126f49b;p=thirdparty%2Fvalgrind.git Print longs as longs. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4765 --- diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c index 084bd9d720..1bf028a0c1 100644 --- a/cachegrind/cg_main.c +++ b/cachegrind/cg_main.c @@ -976,7 +976,7 @@ static void cg_fini(Int exitcode) l3 = ULong_width(Dw_total.a); /* Make format string, getting width right for numbers */ - VG_(sprintf)(fmt, "%%s %%,%dld", l1); + VG_(sprintf)(fmt, "%%s %%,%dlld", l1); VG_(message)(Vg_UserMsg, fmt, "I refs: ", Ir_total.a); VG_(message)(Vg_UserMsg, fmt, "I1 misses: ", Ir_total.m1); @@ -999,7 +999,7 @@ static void cg_fini(Int exitcode) D_total.m2 = Dr_total.m2 + Dw_total.m2; /* Make format string, getting width right for numbers */ - VG_(sprintf)(fmt, "%%s %%,%dld (%%,%dld rd + %%,%dld wr)", l1, l2, l3); + VG_(sprintf)(fmt, "%%s %%,%dlld (%%,%dlld rd + %%,%dlld wr)", l1, l2, l3); VG_(message)(Vg_UserMsg, fmt, "D refs: ", D_total.a, Dr_total.a, Dw_total.a); diff --git a/massif/ms_main.c b/massif/ms_main.c index 9a2ae7e0b4..eda8186788 100644 --- a/massif/ms_main.c +++ b/massif/ms_main.c @@ -1689,7 +1689,7 @@ static void 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); // Heap -------------------------------------------------------------- if (clo_heap)