From 29873b224a04b43de287e80860954daaa07c3527 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Thu, 4 Dec 2008 21:38:31 +0100 Subject: Use correct format conversions. 2008-12-04 Neal H. Walfield * mmap.c (mmap): Use correct format conversions. --- libhurd-mm/ChangeLog | 4 ++++ libhurd-mm/mmap.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'libhurd-mm') diff --git a/libhurd-mm/ChangeLog b/libhurd-mm/ChangeLog index fc3be46..703e145 100644 --- a/libhurd-mm/ChangeLog +++ b/libhurd-mm/ChangeLog @@ -1,3 +1,7 @@ +2008-12-04 Neal H. Walfield + + * mmap.c (mmap): Use correct format conversions. + 2008-12-04 Neal H. Walfield * madvise.c (madvise): Use the correct format modifiers. Print diff --git a/libhurd-mm/mmap.c b/libhurd-mm/mmap.c index 1306053..3535ce2 100644 --- a/libhurd-mm/mmap.c +++ b/libhurd-mm/mmap.c @@ -55,7 +55,7 @@ mmap (void *addr, size_t length, int protect, int flags, { if (((uintptr_t) addr & (PAGESIZE - 1))) { - debug (0, "MAP_FIXED passed but address not page aligned: %x", + debug (0, "MAP_FIXED passed but address not page aligned: %p", addr); return MAP_FAILED; } @@ -74,7 +74,7 @@ mmap (void *addr, size_t length, int protect, int flags, length = (length + PAGESIZE - 1) & ~(PAGESIZE - 1); if (addr) - debug (5, "Trying to allocate memory %x-%x", addr, addr + length); + debug (5, "Trying to allocate memory %p-%p", addr, addr + length); struct anonymous_pager *pager; pager = anonymous_pager_alloc (ADDR_VOID, addr, length, access, @@ -87,7 +87,7 @@ mmap (void *addr, size_t length, int protect, int flags, return MAP_FAILED; } - debug (5, "Allocated memory %x-%x", addr, addr + length); + debug (5, "Allocated memory %p-%p", addr, addr + length); return addr; } @@ -98,7 +98,7 @@ munmap (void *addr, size_t length) uintptr_t start = (uintptr_t) addr; uintptr_t end = start + length - 1; - debug (5, "(%p, %x (%p))", addr, length, end); + debug (5, "(%p, %x (%p))", addr, length, (void *) end); struct region region = { (uintptr_t) addr, length }; -- cgit v1.2.3