From 057c1b38df93f42f79429a0b340e4435426c85b7 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 17 Jan 2012 18:50:58 +0000 Subject: Add an __attribute__((__format__(__kprintf__))) to disasm_interface_t.di_printf --- sys/arch/arm/arm/disassem.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/arm/arm/disassem.h b/sys/arch/arm/arm/disassem.h index 1352864fd50..c065353006a 100644 --- a/sys/arch/arm/arm/disassem.h +++ b/sys/arch/arm/arm/disassem.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disassem.h,v 1.1 2004/02/01 05:09:48 drahn Exp $ */ +/* $OpenBSD: disassem.h,v 1.2 2012/01/17 18:50:57 miod Exp $ */ /* $NetBSD: disassem.h,v 1.4 2001/03/04 04:15:58 matt Exp $ */ /* @@ -40,7 +40,8 @@ typedef struct { db_expr_t (*di_readword)(db_expr_t); void (*di_printaddr)(db_expr_t); - int (*di_printf)(const char *, ...); + int (*di_printf)(const char *, ...) + __attribute__((__format__(__kprintf__,1,2))); } disasm_interface_t; /* Prototypes for callable functions */ -- cgit v1.2.3