]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Print longs as longs.
authorNicholas Nethercote <njn@valgrind.org>
Sun, 25 Sep 2005 17:57:47 +0000 (17:57 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Sun, 25 Sep 2005 17:57:47 +0000 (17:57 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4765

cachegrind/cg_main.c
massif/ms_main.c

index 084bd9d7208620ea4579e0db6ed2c454111f84b2..1bf028a0c1bf93f549d2cebc29c9fc5bae51b650 100644 (file)
@@ -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);
index 9a2ae7e0b4be5887a353629a9692c1e84b261a62..eda8186788c239b22d43671190d98b38f957ab31 100644 (file)
@@ -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)