summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_malloc_debug.c')
-rw-r--r--sys/kern/kern_malloc_debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc_debug.c b/sys/kern/kern_malloc_debug.c
index 68ee1e0bdf7..a0fcf2fc91f 100644
--- a/sys/kern/kern_malloc_debug.c
+++ b/sys/kern/kern_malloc_debug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc_debug.c,v 1.28 2011/07/28 14:07:01 mcbride Exp $ */
+/* $OpenBSD: kern_malloc_debug.c,v 1.29 2013/02/09 20:56:35 miod Exp $ */
/*
* Copyright (c) 1999, 2000 Artur Grabowski <art@openbsd.org>
@@ -300,7 +300,8 @@ debug_malloc_assert_allocated(void *addr, const char *func)
}
void
-debug_malloc_printit(int (*pr)(const char *, ...), vaddr_t addr)
+debug_malloc_printit(
+ int (*pr)(const char *, ...) __attribute__((__format__(__kprintf__,1,2))))
{
struct debug_malloc_entry *md;