mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-16 20:07:04 +00:00
checkasm: improve Linux perf error message
Report the failing system call name, as is convention, rather than just a rather unhelpful "syscall".
This commit is contained in:
parent
983af74452
commit
f25ad0fe02
@ -667,7 +667,7 @@ static int bench_init_linux(void)
|
||||
|
||||
state.sysfd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, 0);
|
||||
if (state.sysfd == -1) {
|
||||
perror("syscall");
|
||||
perror("perf_event_open");
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user