mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
ceph: mark ceph_fmt_xattr() as printf-like for better type checking
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
1cc1699070
commit
f6fbdcd997
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user