Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f6fbdcd9
Commit
f6fbdcd9
authored
Sep 17, 2020
by
Ilya Dryomov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: mark ceph_fmt_xattr() as printf-like for better type checking
Signed-off-by:
Ilya Dryomov
<
idryomov@gmail.com
>
parent
1cc16990
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fs/ceph/xattr.c
fs/ceph/xattr.c
+2
-1
No files found.
fs/ceph/xattr.c
View file @
f6fbdcd9
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment