[commit: ghc] wip/fix-json-profiling-report-i386: rts/ProfilerReportJson: Fix format string (37c9b80)

git at git.haskell.org git at git.haskell.org
Tue Feb 5 12:23:52 UTC 2019


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

On branch  : wip/fix-json-profiling-report-i386
Link       : http://ghc.haskell.org/trac/ghc/changeset/37c9b806b7aa939b76617669d72e4884e1b547f9/ghc

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

commit 37c9b806b7aa939b76617669d72e4884e1b547f9
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.


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

37c9b806b7aa939b76617669d72e4884e1b547f9
 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