diff options
author | Dominique Martinet <[email protected]> | 2023-10-25 19:34:44 +0900 |
---|---|---|
committer | Dominique Martinet <[email protected]> | 2023-10-26 07:05:52 +0900 |
commit | 9b5c6281838fc84683dd99b47302d81fce399918 (patch) | |
tree | c5e9c1c4fb870b46e46ad658bffdd4817181897f /tools/perf/util/trace-event-scripting.c | |
parent | 355f074609dbf3042900ea9d30fcd2b0c323a365 (diff) |
9p: v9fs_listxattr: fix %s null argument warning
W=1 warns about null argument to kprintf:
In file included from fs/9p/xattr.c:12:
In function ‘v9fs_xattr_get’,
inlined from ‘v9fs_listxattr’ at fs/9p/xattr.c:142:9:
include/net/9p/9p.h:55:2: error: ‘%s’ directive argument is null
[-Werror=format-overflow=]
55 | _p9_debug(level, __func__, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Use an empty string instead of :
- this is ok 9p-wise because p9pdu_vwritef serializes a null string
and an empty string the same way (one '0' word for length)
- since this degrades the print statements, add new single quotes for
xattr's name delimter (Old: "file = (null)", new: "file = ''")
Link: https://lore.kernel.org/r/[email protected]
Suggested-by: Su Hui <[email protected]>
Signed-off-by: Dominique Martinet <[email protected]>
Acked-by: Christian Schoenebeck <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions