[Git][ghc/ghc][master] rts: Fix incorrect format specifiers in era profiling

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Tue Dec 17 18:52:42 UTC 2024


Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
430d965a by Ben Gamari at 2024-12-17T13:52:15-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/430d965a176d6c9e629d169fa0606923275c8332

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/430d965a176d6c9e629d169fa0606923275c8332
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/20241217/2fc6469c/attachment.html>


More information about the ghc-commits mailing list