1 ext4: silence a format string false positive
3 From: Dan Carpenter <dan.carpenter@oracle.com>
5 Static checkers complain that the format string should be "%s". It does
6 not make a difference for the current code.
8 Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 diff --git a/fs/ext4/mmp.c b/fs/ext4/mmp.c
12 index 0880ec9..8b72634 100644
15 @@ -115,7 +115,7 @@ warn_exit:
16 void __dump_mmp_msg(struct super_block *sb, struct mmp_struct *mmp,
17 const char *function, unsigned int line, const char *msg)
19 - __ext4_warning(sb, function, line, msg);
20 + __ext4_warning(sb, function, line, "%s", msg);
21 __ext4_warning(sb, function, line,
22 "MMP failure info: last update time: %llu, last update "
23 "node: %s, last update device: %s\n",