[commit: ghc] wip/marge_bot_batch_merge_job: rts/ProfilerReportJson: Fix format string (d9b885c)

git at git.haskell.org git at git.haskell.org
Thu Feb 7 17:12:07 UTC 2019


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

On branch  : wip/marge_bot_batch_merge_job
Link       : http://ghc.haskell.org/trac/ghc/changeset/d9b885cd6fcc60660e1a9780e59054eb7520d494/ghc

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

commit d9b885cd6fcc60660e1a9780e59054eb7520d494
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.


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

d9b885cd6fcc60660e1a9780e59054eb7520d494
 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