[commit: ghc] master: rts: Fix format of failed memory commit message (1512b63)

git at git.haskell.org git at git.haskell.org
Tue Feb 6 19:22:13 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/1512b63347dff5aeae4a27d7421f7608cc43a196/ghc

>---------------------------------------------------------------

commit 1512b63347dff5aeae4a27d7421f7608cc43a196
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Tue Feb 6 13:26:50 2018 -0500

    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


>---------------------------------------------------------------

1512b63347dff5aeae4a27d7421f7608cc43a196
 rts/posix/OSMem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
index 2f0bf3f..410b4d0 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);
     }
 }
 



More information about the ghc-commits mailing list