aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/trace/beauty/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/trace/beauty/ioctl.c')
-rw-r--r--tools/perf/trace/beauty/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/trace/beauty/ioctl.c b/tools/perf/trace/beauty/ioctl.c
index 620350d41209..52242fa4072b 100644
--- a/tools/perf/trace/beauty/ioctl.c
+++ b/tools/perf/trace/beauty/ioctl.c
@@ -175,7 +175,7 @@ static size_t ioctl__scnprintf_cmd(unsigned long cmd, char *bf, size_t size, boo
175size_t syscall_arg__scnprintf_ioctl_cmd(char *bf, size_t size, struct syscall_arg *arg) 175size_t syscall_arg__scnprintf_ioctl_cmd(char *bf, size_t size, struct syscall_arg *arg)
176{ 176{
177 unsigned long cmd = arg->val; 177 unsigned long cmd = arg->val;
178 unsigned int fd = syscall_arg__val(arg, 0); 178 int fd = syscall_arg__val(arg, 0);
179 struct file *file = thread__files_entry(arg->thread, fd); 179 struct file *file = thread__files_entry(arg->thread, fd);
180 180
181 if (file != NULL) { 181 if (file != NULL) {