rts: fix some barf format specifiers.
authorDouglas Wilson <douglas.wilson@gmail.com>
Tue, 6 Feb 2018 22:27:32 +0000 (17:27 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 6 Feb 2018 22:27:33 +0000 (17:27 -0500)
Reviewers: bgamari, erikd, simonmar

Reviewed By: bgamari

Subscribers: rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4390

rts/Schedule.c
rts/posix/OSMem.c

index 349a778..f1363e4 100644 (file)
@@ -271,7 +271,7 @@ schedule (Capability *initialCapability, Task *task)
         }
         break;
     default:
-        barf("sched_state: %ld", sched_state);
+        barf("sched_state: %" FMT_Word, sched_state);
     }
 
     scheduleFindWork(&cap);
index 410b4d0..f603644 100644 (file)
@@ -536,7 +536,7 @@ void osCommitMemory(void *at, W_ size)
 {
     void *r = my_mmap(at, size, MEM_COMMIT);
     if (r == NULL) {
-        barf("Unable to commit %lu bytes of memory", size);
+        barf("Unable to commit %" FMT_Word " bytes of memory", size);
     }
 }