mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-18 22:14:15 +00:00
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:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user