diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-05-11 16:17:08 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-05-11 22:13:06 +1000 |
commit | 0efbf18b80c261708da9ef61bcd420fa94cfed42 (patch) | |
tree | a9fe8bad32060fa4bf18adc6ff29c4844a3b0495 /rts/Trace.c | |
parent | 584ade67630f4e5c599c8422801e93f352b9a6df (diff) | |
download | haskell-0efbf18b80c261708da9ef61bcd420fa94cfed42.tar.gz |
rts: Fix C compiler warnings on Windows
Summary:
Specifcally we want the MinGW compiler to use ISO print format
specfifiers.
Test Plan: Validate on Linux, OS X and Windows
Reviewers: Phyx, austin, bgamari, simonmar
Reviewed By: bgamari, simonmar
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2192
Diffstat (limited to 'rts/Trace.c')
-rw-r--r-- | rts/Trace.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/rts/Trace.c b/rts/Trace.c index cf47e160bb..8480f10bbd 100644 --- a/rts/Trace.c +++ b/rts/Trace.c @@ -424,18 +424,19 @@ void traceCapsetEvent (EventTypeNum tag, tracePreface(); switch (tag) { case EVENT_CAPSET_CREATE: // (capset, capset_type) - debugBelch("created capset %" FMT_Word " of type %d\n", (W_)capset, (int)info); + debugBelch("created capset %" FMT_Word32 " of type %d\n", capset, + (int)info); break; case EVENT_CAPSET_DELETE: // (capset) - debugBelch("deleted capset %" FMT_Word "\n", (W_)capset); + debugBelch("deleted capset %" FMT_Word32 "\n", capset); break; case EVENT_CAPSET_ASSIGN_CAP: // (capset, capno) - debugBelch("assigned cap %" FMT_Word " to capset %" FMT_Word "\n", - (W_)info, (W_)capset); + debugBelch("assigned cap %" FMT_Word " to capset %" FMT_Word32 "\n", + info, capset); break; case EVENT_CAPSET_REMOVE_CAP: // (capset, capno) - debugBelch("removed cap %" FMT_Word " from capset %" FMT_Word "\n", - (W_)info, (W_)capset); + debugBelch("removed cap %" FMT_Word " from capset %" FMT_Word32 + "\n", info, capset); break; } RELEASE_LOCK(&trace_utx); |