mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-24 23:40:39 +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) {
|
if (fd == -1) {
|
||||||
perror("perf_event_open");
|
perror("perf_event_open");
|
||||||
if (errno == EPERM || errno == EACCES) {
|
if (errno == EPERM || errno == EACCES) {
|
||||||
printf("You may not have permission to collect stats.\n");
|
printErr("You may not have permission to collect stats.\n"\
|
||||||
printf("Consider tweaking /proc/sys/kernel/perf_event_paranoid or running as root.\n");
|
"Consider tweaking /proc/sys/kernel/perf_event_paranoid or running as root");
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user