From 7b46c7824908fdb07152e05dc2f83bc8084087f9 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Mon, 8 Jul 2024 08:28:48 +0100 Subject: [PATCH] [v1.05] Replace printf with proper printErr --- src/common/freq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/freq.c b/src/common/freq.c index 743a49a..6a84aae 100644 --- a/src/common/freq.c +++ b/src/common/freq.c @@ -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; }