[v1.05] Replace printf with proper printErr

This commit is contained in:
Dr-Noob
2024-07-08 08:28:48 +01:00
parent e0095c303d
commit 7b46c78249

View File

@@ -103,8 +103,8 @@ int64_t measure_max_frequency(uint32_t core) {
if (fd == -1) {
perror("perf_event_open");
if (errno == EPERM || errno == EACCES) {
printf("You may not have permission to collect stats.\n");
printf("Consider tweaking /proc/sys/kernel/perf_event_paranoid or running as root.\n");
printErr("You may not have permission to collect stats.\n"\
"Consider tweaking /proc/sys/kernel/perf_event_paranoid or running as root");
}
return -1;
}