diff options
author | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-04-23 18:30:33 -0700 |
---|---|---|
committer | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-04-24 15:43:44 -0700 |
commit | 1dda1be2c41b0d7b6b357ebca65e1ad411b76380 (patch) | |
tree | add324e24e7612790fc06f7bbc01572da0d08ac1 | |
parent | 405879699ccdcaea544635814c63fafd46b5af03 (diff) |
wimaxll: add format __atributes__ to w_msg() for printf format check
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
-rw-r--r-- | include/wimaxll/cmd.h | 6 |
1 files 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 { |