From ec2ad4fef60b0e26f40b818a3968de7e83fb466c Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Tue, 6 Apr 2021 16:35:12 +0200 Subject: [PATCH] [v0.96] Do not consider missing frequency file as a bug --- src/common/udev.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/common/udev.c b/src/common/udev.c index 037f6e4..1e875a2 100644 --- a/src/common/udev.c +++ b/src/common/udev.c @@ -32,17 +32,11 @@ long get_freq_from_file(char* path, bool hv_present) { int filelen; char* buf; if((buf = read_file(path, &filelen)) == NULL) { - #ifdef ARCH_X86 - if(hv_present) { - printWarn("Could not open '%s'", path); - } - else { - perror("open"); - printBug("Could not open '%s'", path); - } - #elif ARCH_ARM - printWarn("Could not open '%s'", path); - #endif + if(hv_present) + printWarn("Could not open '%s' (HV is present)", path); + else + printWarn("Could not open '%s'", path); + return UNKNOWN_FREQ; }