diff options
author | 2020-09-17 18:45:44 +0200 | |
---|---|---|
committer | 2020-10-12 15:29:27 +0200 | |
commit | f6fbdcd997f5d5d0658204ca42abdeced56fd4e5 (patch) | |
tree | 4af796e36aa48dd5a8203fa95f96273f6f276d4d /fs/ceph/xattr.c | |
parent | ceph: fold ceph_update_writeable_page into ceph_write_begin (diff) | |
download | linux-f6fbdcd997f5d5d0658204ca42abdeced56fd4e5.tar.gz linux-f6fbdcd997f5d5d0658204ca42abdeced56fd4e5.tar.bz2 linux-f6fbdcd997f5d5d0658204ca42abdeced56fd4e5.zip |
ceph: mark ceph_fmt_xattr() as printf-like for better type checking
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/xattr.c')
-rw-r--r-- | fs/ceph/xattr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index 3a733ac33d9b..197cb1234341 100644 --- 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; |