From: Nicholas Nethercote Date: Sun, 25 Sep 2005 17:59:16 +0000 (+0000) Subject: actually, they're unsigned X-Git-Tag: svn/VALGRIND_3_1_0~447 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae68dcc13fa24ed073c2b137b62db7353bb036d3;p=thirdparty%2Fvalgrind.git actually, they're unsigned git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4766 --- diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c index 1bf028a0c1..d85baff19f 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 %%,%dlld", l1); + VG_(sprintf)(fmt, "%%s %%,%dllu", 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 %%,%dlld (%%,%dlld rd + %%,%dlld wr)", l1, l2, l3); + VG_(sprintf)(fmt, "%%s %%,%dllu (%%,%dllu rd + %%,%dllu 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 eda8186788..73c49d0dc8 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: %,lld ms.B", total_ST); + VG_(message)(Vg_UserMsg, "Total spacetime: %,llu ms.B", total_ST); // Heap -------------------------------------------------------------- if (clo_heap)