summaryrefslogtreecommitdiff
path: root/libhurd-mm
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-12-04 15:54:11 +0100
committerNeal H. Walfield <neal@gnu.org>2008-12-04 15:54:11 +0100
commitec403ac0c72c009d2a0c8f17db120d984bdb4f39 (patch)
tree69d53117f1442e422ed76ffa34dac709486cec97 /libhurd-mm
parent9e830b06304f2881e2185a9fdc2806ad539f8168 (diff)
Use the correct format modifiers and print the correct values in madvise.c.
2008-12-04 Neal H. Walfield <neal@gnu.org> * madvise.c (madvise): Use the correct format modifiers. Print the correct values.
Diffstat (limited to 'libhurd-mm')
-rw-r--r--libhurd-mm/ChangeLog5
-rw-r--r--libhurd-mm/madvise.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/libhurd-mm/ChangeLog b/libhurd-mm/ChangeLog
index dc6fecc..fc3be46 100644
--- a/libhurd-mm/ChangeLog
+++ b/libhurd-mm/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-04 Neal H. Walfield <neal@gnu.org>
+
+ * madvise.c (madvise): Use the correct format modifiers. Print
+ the correct values.
+
2008-11-18 Neal H. Walfield <neal@gnu.org>
* as-dump.c (do_walk): Don't print the prefix if it is the empty
diff --git a/libhurd-mm/madvise.c b/libhurd-mm/madvise.c
index b9494cd..529c2be 100644
--- a/libhurd-mm/madvise.c
+++ b/libhurd-mm/madvise.c
@@ -35,12 +35,12 @@ madvise (void *addr, size_t length, int advice)
if (((uintptr_t) addr & (PAGESIZE - 1)) != 0)
{
- debug (0, "Address %x not multiple of pagesize.", addr);
+ debug (0, "Address %p not multiple of pagesize.", addr);
return EINVAL;
}
if ((length & (PAGESIZE - 1)) != 0)
{
- debug (0, "Length %x not multiple of pagesize.", addr);
+ debug (0, "Length %x not multiple of pagesize.", length);
return EINVAL;
}