Add printf format checking to scoutfs msg funcs

scoutfs_msg() was missing the attribute to check printf formats and
arguments.

Signed-off-by: Zach Brown <zab@versity.com>
Reviewed-by: Mark Fasheh <mfasheh@versity.com>
This commit is contained in:
Zach Brown
2017-04-18 13:59:54 -07:00
parent cec3f9468a
commit efd95688d3
+2 -2
View File
@@ -1,8 +1,8 @@
#ifndef _SCOUTFS_MSG_H_
#define _SCOUTFS_MSG_H_
void scoutfs_msg(struct super_block *sb, const char *prefix, const char *str,
const char *fmt, ...);
void __printf(4, 5) scoutfs_msg(struct super_block *sb, const char *prefix,
const char *str, const char *fmt, ...);
#define scoutfs_err(sb, fmt, args...) \
scoutfs_msg(sb, KERN_ERR, " error", fmt, ##args)