diff options
author | Joe Perches <joe@perches.com> | 2012-11-21 13:17:34 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-26 14:54:20 -0500 |
commit | fbbdcc0213bbf74acb5d6d210a9cb4db557edd30 (patch) | |
tree | 10dd9e0c8cf4ed616111b22b276ae72477032062 /drivers/net/wireless/brcm80211/brcmsmac/debug.h | |
parent | 62c8003ecb973986958e9dade4a7e598349caf48 (diff) |
brcmsmac: Add __printf verification to logging prototypes
Adding __printf helps spot format and argument mismatches.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/debug.h')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/debug.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/debug.h b/drivers/net/wireless/brcm80211/brcmsmac/debug.h index c0d2cf7d9be1..f77066bda9d2 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/debug.h +++ b/drivers/net/wireless/brcm80211/brcmsmac/debug.h | |||
@@ -8,17 +8,23 @@ | |||
8 | #include "main.h" | 8 | #include "main.h" |
9 | #include "mac80211_if.h" | 9 | #include "mac80211_if.h" |
10 | 10 | ||
11 | __printf(2, 3) | ||
11 | void __brcms_info(struct device *dev, const char *fmt, ...); | 12 | void __brcms_info(struct device *dev, const char *fmt, ...); |
13 | __printf(2, 3) | ||
12 | void __brcms_warn(struct device *dev, const char *fmt, ...); | 14 | void __brcms_warn(struct device *dev, const char *fmt, ...); |
15 | __printf(2, 3) | ||
13 | void __brcms_err(struct device *dev, const char *fmt, ...); | 16 | void __brcms_err(struct device *dev, const char *fmt, ...); |
17 | __printf(2, 3) | ||
14 | void __brcms_crit(struct device *dev, const char *fmt, ...); | 18 | void __brcms_crit(struct device *dev, const char *fmt, ...); |
15 | 19 | ||
16 | #if defined(CONFIG_BRCMDBG) || defined(CONFIG_BRCM_TRACING) | 20 | #if defined(CONFIG_BRCMDBG) || defined(CONFIG_BRCM_TRACING) |
21 | __printf(4, 5) | ||
17 | void __brcms_dbg(struct device *dev, u32 level, const char *func, | 22 | void __brcms_dbg(struct device *dev, u32 level, const char *func, |
18 | const char *fmt, ...); | 23 | const char *fmt, ...); |
19 | #else | 24 | #else |
20 | static inline void __brcms_dbg(struct device *dev, u32 level, | 25 | static inline __printf(4, 5) |
21 | const char *func, const char *fmt, ...) | 26 | void __brcms_dbg(struct device *dev, u32 level, const char *func, |
27 | const char *fmt, ...) | ||
22 | { | 28 | { |
23 | } | 29 | } |
24 | #endif | 30 | #endif |