projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cc1699
)
ceph: mark ceph_fmt_xattr() as printf-like for better type checking
author
Ilya Dryomov
<idryomov@gmail.com>
Thu, 17 Sep 2020 16:45:44 +0000
(18:45 +0200)
committer
Ilya Dryomov
<idryomov@gmail.com>
Mon, 12 Oct 2020 13:29:27 +0000
(15:29 +0200)
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/xattr.c
patch
|
blob
|
history
diff --git
a/fs/ceph/xattr.c
b/fs/ceph/xattr.c
index
3a733ac
..
197cb12
100644
(file)
--- a/
fs/ceph/xattr.c
+++ b/
fs/ceph/xattr.c
@@
-116,7
+116,8
@@
static ssize_t ceph_vxattrcb_layout(struct ceph_inode_info *ci, char *val,
* NULL terminates however, so call it on a temporary buffer and then memcpy
* the result into place.
*/
-static int ceph_fmt_xattr(char *val, size_t size, const char *fmt, ...)
+static __printf(3, 4)
+int ceph_fmt_xattr(char *val, size_t size, const char *fmt, ...)
{
int ret;
va_list args;