[commit: ghc] wip/ghc-8.8-merges: rts/ProfilerReportJson: Fix format string (60a71df)

git at git.haskell.org git at git.haskell.org
Thu Feb 21 15:11:44 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/ghc-8.8-merges
Link       : http://ghc.haskell.org/trac/ghc/changeset/60a71dfde532bd5c9811da10a90bf08563e6ed70/ghc

>---------------------------------------------------------------

commit 60a71dfde532bd5c9811da10a90bf08563e6ed70
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Feb 4 21:42:41 2019 -0500

    rts/ProfilerReportJson: Fix format string
    
    This was warning on i386.
    
    (cherry picked from commit 7ff127f9e455402da183d1bb1808db024d1fa944)


>---------------------------------------------------------------

60a71dfde532bd5c9811da10a90bf08563e6ed70
 rts/ProfilerReportJson.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rts/ProfilerReportJson.c b/rts/ProfilerReportJson.c
index a786921..ea7c852 100644
--- a/rts/ProfilerReportJson.c
+++ b/rts/ProfilerReportJson.c
@@ -66,7 +66,7 @@ logCostCentreStack(FILE *prof_file, CostCentreStack const *ccs)
     fprintf(prof_file,
             "{\"id\": %" FMT_Int ", "
             "\"entries\": %" FMT_Word64 ", "
-            "\"alloc\": %" FMT_Word ", "
+            "\"alloc\": %" FMT_Word64 ", "
             "\"ticks\": %" FMT_Word ", ",
             ccs->cc->ccID,
             ccs->scc_count,



More information about the ghc-commits mailing list