[commit: ghc] master: rts: fix some barf format specifiers. (00f1a4a)
git at git.haskell.org
git at git.haskell.org
Tue Feb 6 22:28:26 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/00f1a4ab80b201ce15c509126f89c5a108786f32/ghc
>---------------------------------------------------------------
commit 00f1a4ab80b201ce15c509126f89c5a108786f32
Author: Douglas Wilson <douglas.wilson at gmail.com>
Date: Tue Feb 6 17:27:32 2018 -0500
rts: fix some barf format specifiers.
Reviewers: bgamari, erikd, simonmar
Reviewed By: bgamari
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4390
>---------------------------------------------------------------
00f1a4ab80b201ce15c509126f89c5a108786f32
rts/Schedule.c | 2 +-
rts/posix/OSMem.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/rts/Schedule.c b/rts/Schedule.c
index 349a778..f1363e4 100644
--- a/rts/Schedule.c
+++ b/rts/Schedule.c
@@ -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);
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
index 410b4d0..f603644 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 %lu bytes of memory", size);
+ barf("Unable to commit %" FMT_Word " bytes of memory", size);
}
}
More information about the ghc-commits
mailing list