summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc_debug.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2013-02-09 20:56:35 +0000
committermiod <miod@openbsd.org>2013-02-09 20:56:35 +0000
commit5ad789c566927b3d88235dcdddc2fd2abe4e352d (patch)
tree5cb56143f4dea9bb25004fcb2005b76741dacb75 /sys/kern/kern_malloc_debug.c
parentGrammar, typos (diff)
downloadwireguard-openbsd-5ad789c566927b3d88235dcdddc2fd2abe4e352d.tar.xz
wireguard-openbsd-5ad789c566927b3d88235dcdddc2fd2abe4e352d.zip
Add explicit __attribute__ ((__format__(__kprintf__)))) to the functions and
function pointer arguments which are {used as,} wrappers around the kernel printf function. No functional change.
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;