[commit: ghc] wip/T15449, wip/T16188, wip/llvm-configure-opts: rts/ProfilerReportJson: Fix format string (7ff127f)

git at git.haskell.org git at git.haskell.org
Sun Feb 10 21:30:46 UTC 2019


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

On branches: wip/T15449,wip/T16188,wip/llvm-configure-opts
Link       : http://ghc.haskell.org/trac/ghc/changeset/7ff127f9e455402da183d1bb1808db024d1fa944/ghc

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

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


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

7ff127f9e455402da183d1bb1808db024d1fa944
 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