From 1dda1be2c41b0d7b6b357ebca65e1ad411b76380 Mon Sep 17 00:00:00 2001 From: Inaky Perez-Gonzalez Date: Thu, 23 Apr 2009 18:30:33 -0700 Subject: wimaxll: add format __atributes__ to w_msg() for printf format check Signed-off-by: Inaky Perez-Gonzalez --- include/wimaxll/cmd.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/wimaxll/cmd.h b/include/wimaxll/cmd.h index c15fa1a..53bd38c 100644 --- a/include/wimaxll/cmd.h +++ b/include/wimaxll/cmd.h @@ -80,8 +80,10 @@ void w_cmd_unregister(struct cmd *); /* Misc utilities */ void w_cmd_need_if(struct wimaxll_handle *); -void w_abort(int result, const char *fmt, ...); -void w_msg(unsigned, const char *, unsigned, const char *fmt, ...); +void w_abort(int result, const char *fmt, ...) + __attribute__ ((format(printf, 2, 3))); +void w_msg(unsigned, const char *, unsigned, const char *fmt, ...) + __attribute__ ((format(printf, 4, 5))); /* Logging / printing */ enum { -- cgit v1.2.3