mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
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>
This commit is contained in:
parent
62c8003ecb
commit
fbbdcc0213
@ -8,17 +8,23 @@
|
||||
#include "main.h"
|
||||
#include "mac80211_if.h"
|
||||
|
||||
__printf(2, 3)
|
||||
void __brcms_info(struct device *dev, const char *fmt, ...);
|
||||
__printf(2, 3)
|
||||
void __brcms_warn(struct device *dev, const char *fmt, ...);
|
||||
__printf(2, 3)
|
||||
void __brcms_err(struct device *dev, const char *fmt, ...);
|
||||
__printf(2, 3)
|
||||
void __brcms_crit(struct device *dev, const char *fmt, ...);
|
||||
|
||||
#if defined(CONFIG_BRCMDBG) || defined(CONFIG_BRCM_TRACING)
|
||||
__printf(4, 5)
|
||||
void __brcms_dbg(struct device *dev, u32 level, const char *func,
|
||||
const char *fmt, ...);
|
||||
#else
|
||||
static inline void __brcms_dbg(struct device *dev, u32 level,
|
||||
const char *func, const char *fmt, ...)
|
||||
static inline __printf(4, 5)
|
||||
void __brcms_dbg(struct device *dev, u32 level, const char *func,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user