mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v1.05] Replace printf with proper printErr
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user