summaryrefslogtreecommitdiff
path: root/libhurd-mm
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-12-04 21:38:31 +0100
committerNeal H. Walfield <neal@gnu.org>2008-12-04 21:38:31 +0100
commit29873b224a04b43de287e80860954daaa07c3527 (patch)
tree6058045bec2454475dd4e5ce4be416d73c9d8ecf /libhurd-mm
parent095c64e7467d6f29218ddbaa735f3f707b473386 (diff)
Use correct format conversions.
2008-12-04 Neal H. Walfield <neal@gnu.org> * mmap.c (mmap): Use correct format conversions.
Diffstat (limited to 'libhurd-mm')
-rw-r--r--libhurd-mm/ChangeLog4
-rw-r--r--libhurd-mm/mmap.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/libhurd-mm/ChangeLog b/libhurd-mm/ChangeLog
index fc3be46..703e145 100644
--- a/libhurd-mm/ChangeLog
+++ b/libhurd-mm/ChangeLog
@@ -1,5 +1,9 @@
2008-12-04 Neal H. Walfield <neal@gnu.org>
+ * mmap.c (mmap): Use correct format conversions.
+
+2008-12-04 Neal H. Walfield <neal@gnu.org>
+
* madvise.c (madvise): Use the correct format modifiers. Print
the correct values.
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 };