Commit f6fbdcd9 authored by Ilya Dryomov's avatar Ilya Dryomov

ceph: mark ceph_fmt_xattr() as printf-like for better type checking

Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 1cc16990
...@@ -116,7 +116,8 @@ static ssize_t ceph_vxattrcb_layout(struct ceph_inode_info *ci, char *val, ...@@ -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 * NULL terminates however, so call it on a temporary buffer and then memcpy
* the result into place. * 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; int ret;
va_list args; va_list args;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment