[PATCH v2 02/10] perf trace: Change some comments

Howard Chu
2024-08-15T01:36:45Z

Change them from '//' to '/* */'

Signed-off-by: Howard Chu <howardchu95@gmail.com>
---
tools/perf/builtin-trace.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index d6ca541fdc78..97076b962688 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -957,17 +957,16 @@ static bool syscall_arg__strtoul_btf_type(char *bf, size_t size, struct syscall_
if (btf == NULL)
return false;

- if (arg->fmt->type == NULL) {
- // See if this is an enum
+ /* See if this is an enum */
+ if (arg->fmt->type == NULL)
syscall_arg_fmt__cache_btf_enum(arg->fmt, btf, type);
- }

- // Now let's see if we have a BTF type resolved
+ /* Now let's see if we have a BTF type resolved */
bt = arg->fmt->type;
if (bt == NULL)
return false;

- // If it is an enum:
+ /* If it is an enum: */
if (btf_is_enum(arg->fmt->type))
return syscall_arg__strtoul_btf_enum(bf, size, arg, val);

--
2.45.2