mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[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:
@@ -2,8 +2,7 @@
|
||||
#include "midr.h"
|
||||
|
||||
#define _PATH_CPUS_PRESENT _PATH_SYS_SYSTEM _PATH_SYS_CPU "/present"
|
||||
//#define _PATH_CPUINFO "/proc/cpuinfo"
|
||||
#define _PATH_CPUINFO "cpuinfo_debug"
|
||||
#define _PATH_CPUINFO "/proc/cpuinfo"
|
||||
|
||||
#define CPUINFO_CPU_IMPLEMENTER_STR "CPU implementer\t: "
|
||||
#define CPUINFO_CPU_ARCHITECTURE_STR "CPU architecture: "
|
||||
|
||||
@@ -32,8 +32,12 @@ long get_freq_from_file(char* path) {
|
||||
int filelen;
|
||||
char* buf;
|
||||
if((buf = read_file(path, &filelen)) == NULL) {
|
||||
#ifdef ARCH_X86
|
||||
perror("open");
|
||||
printBug("Could not open '%s'", path);
|
||||
#elif ARCH_ARM
|
||||
printWarn("Could not open '%s'", path);
|
||||
#endif
|
||||
return UNKNOWN_FREQ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user