summaryrefslogtreecommitdiff
path: root/rts/posix
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-02-06 13:26:50 -0500
committerBen Gamari <ben@smart-cactus.org>2018-02-06 14:21:16 -0500
commit1512b63347dff5aeae4a27d7421f7608cc43a196 (patch)
tree2e9e4c43196e2174437ae326f5a59d3230ff3d3d /rts/posix
parent7ad72eb39d1becc9fdbc99d4969f5b9b182ddf93 (diff)
downloadhaskell-1512b63347dff5aeae4a27d7421f7608cc43a196.tar.gz
rts: Fix format of failed memory commit message
Test Plan: Validate Reviewers: erikd, simonmar Reviewed By: simonmar Subscribers: rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4373
Diffstat (limited to 'rts/posix')
-rw-r--r--rts/posix/OSMem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
index 2f0bf3fe16..410b4d0eba 100644
--- a/rts/posix/OSMem.c
+++ b/rts/posix/OSMem.c
@@ -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);
}
}