[v0.91][ARM][BUGFIX] Do not print error message if frequency file does not exist in ARM. Fix arm udev file (I uploaded my debug udev by mistake)

This commit is contained in:
Dr-Noob
2020-11-26 12:14:37 +01:00
parent ff032efb28
commit b4b693a11e
2 changed files with 5 additions and 2 deletions

View File

@@ -2,8 +2,7 @@
#include "midr.h" #include "midr.h"
#define _PATH_CPUS_PRESENT _PATH_SYS_SYSTEM _PATH_SYS_CPU "/present" #define _PATH_CPUS_PRESENT _PATH_SYS_SYSTEM _PATH_SYS_CPU "/present"
//#define _PATH_CPUINFO "/proc/cpuinfo" #define _PATH_CPUINFO "/proc/cpuinfo"
#define _PATH_CPUINFO "cpuinfo_debug"
#define CPUINFO_CPU_IMPLEMENTER_STR "CPU implementer\t: " #define CPUINFO_CPU_IMPLEMENTER_STR "CPU implementer\t: "
#define CPUINFO_CPU_ARCHITECTURE_STR "CPU architecture: " #define CPUINFO_CPU_ARCHITECTURE_STR "CPU architecture: "

View File

@@ -32,8 +32,12 @@ long get_freq_from_file(char* path) {
int filelen; int filelen;
char* buf; char* buf;
if((buf = read_file(path, &filelen)) == NULL) { if((buf = read_file(path, &filelen)) == NULL) {
#ifdef ARCH_X86
perror("open"); perror("open");
printBug("Could not open '%s'", path); printBug("Could not open '%s'", path);
#elif ARCH_ARM
printWarn("Could not open '%s'", path);
#endif
return UNKNOWN_FREQ; return UNKNOWN_FREQ;
} }