[Git][ghc/ghc][wip/rts-warnings] rts: Fix incorrect format specifiers in era profiling
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Mon Dec 16 23:15:31 UTC 2024
Ben Gamari pushed to branch wip/rts-warnings at Glasgow Haskell Compiler / GHC
Commits:
5431f5c4 by Ben Gamari at 2024-12-16T18:15:16-05:00
rts: Fix incorrect format specifiers in era profiling
Fixes #25581.
- - - - -
1 changed file:
- rts/ProfHeap.c
Changes:
=====================================
rts/ProfHeap.c
=====================================
@@ -958,9 +958,9 @@ dumpCensus( Census *census )
count * sizeof(W_));
break;
case HEAP_BY_ERA:
- fprintf(hp_file, "%lu", (StgWord)ctr->identity);
+ fprintf(hp_file, "%" FMT_Word, (StgWord)ctr->identity);
char str_era[100];
- sprintf(str_era, "%lu", (StgWord)ctr->identity);
+ sprintf(str_era, "%" FMT_Word, (StgWord)ctr->identity);
traceHeapProfSampleString(0, str_era, count * sizeof(W_));
break;
case HEAP_BY_MOD:
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5431f5c4ce9e96bab459af13b55891f8defb6fb7
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5431f5c4ce9e96bab459af13b55891f8defb6fb7
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241216/db730e4f/attachment.html>
More information about the ghc-commits
mailing list