rts: Fix format of failed memory commit message
authorBen Gamari <bgamari.foss@gmail.com>
Tue, 6 Feb 2018 18:26:50 +0000 (13:26 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 6 Feb 2018 19:21:16 +0000 (14:21 -0500)
Test Plan: Validate

Reviewers: erikd, simonmar

Reviewed By: simonmar

Subscribers: rwbarton, thomie, carter

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

rts/posix/OSMem.c

index 2f0bf3f..410b4d0 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 %d bytes of memory", size);
+        barf("Unable to commit %lu bytes of memory", size);
     }
 }