aboutsummaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-02 11:58:25 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:25 -0700
commit34c0cd11a43671d68d47c99a895fb68dd920f0a5 (patch)
tree7fc7b062724aabf7236118e90ba60a66d1dc017b /compat
parentOops. OP_SEL simplification tried to kill the wrong pseudo ;) (diff)
downloadsparse-34c0cd11a43671d68d47c99a895fb68dd920f0a5.tar.gz
sparse-34c0cd11a43671d68d47c99a895fb68dd920f0a5.tar.bz2
sparse-34c0cd11a43671d68d47c99a895fb68dd920f0a5.zip
Move declaration of "die()" to lib.h and check its format.
Fix the format errors this exposed.
Diffstat (limited to 'compat')
-rw-r--r--compat/mmap-blob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/mmap-blob.c b/compat/mmap-blob.c
index 6ddcd84..3626cc7 100644
--- a/compat/mmap-blob.c
+++ b/compat/mmap-blob.c
@@ -18,7 +18,7 @@ void *blob_alloc(unsigned long size)
void *ptr;
if (size & ~CHUNK)
- die("internal error: bad allocation size (%d bytes)", size);
+ die("internal error: bad allocation size (%lu bytes)", size);
ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
if (ptr == MAP_FAILED)
ptr = NULL;
@@ -28,6 +28,6 @@ void *blob_alloc(unsigned long size)
void blob_free(void *addr, unsigned long size)
{
if (!size || (size & ~CHUNK) || ((unsigned long) addr & 512))
- die("internal error: bad blob free (%d bytes at %p)", size, addr);
+ die("internal error: bad blob free (%lu bytes at %p)", size, addr);
munmap(addr, size);
}