From 5ad789c566927b3d88235dcdddc2fd2abe4e352d Mon Sep 17 00:00:00 2001 From: miod Date: Sat, 9 Feb 2013 20:56:35 +0000 Subject: 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. --- sys/kern/kern_malloc_debug.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/kern/kern_malloc_debug.c') 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 @@ -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; -- cgit v1.2.3-59-g8ed1b