Messages in this thread Patch in this message | | | From | Changbin Du <> | Subject | [PATCH 1/4] perf trace beauty: Fix statx flags printing | Date | Thu, 18 Apr 2024 21:13:01 +0800 |
| |
Missed a string specifier '%s' in format string.
Signed-off-by: Changbin Du <changbin.du@huawei.com> --- tools/perf/trace/beauty/statx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/trace/beauty/statx.c b/tools/perf/trace/beauty/statx.c index dc5943a6352d..c61f2be53bda 100644 --- a/tools/perf/trace/beauty/statx.c +++ b/tools/perf/trace/beauty/statx.c @@ -21,7 +21,7 @@ size_t syscall_arg__scnprintf_statx_flags(char *bf, size_t size, struct syscall_ return scnprintf(bf, size, "%s%s", show_prefix ? "AT_STATX_" : "", "SYNC_AS_STAT"); #define P_FLAG(n) \ if (flags & AT_##n) { \ - printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", show_prefix ? prefix : "", #n); \ + printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? prefix : "", #n); \ flags &= ~AT_##n; \ } -- 2.34.1
| |