mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-24 23:40:39 +01:00
[v0.94] Do not consider missing frequency file in x86_64 as a bug. Fix typos
This commit is contained in:
@@ -32,12 +32,7 @@ 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;
|
||||
}
|
||||
|
||||
|
||||
@@ -594,7 +594,7 @@ struct cache* get_cache_info(struct cpuInfo* cpu) {
|
||||
|
||||
uint32_t level;
|
||||
|
||||
// We use standart 0x00000004 for Intel
|
||||
// We use standard 0x00000004 for Intel
|
||||
// We use extended 0x8000001D for AMD
|
||||
// or 0x80000005/6 for old AMD
|
||||
if(cpu->cpu_vendor == CPU_VENDOR_INTEL) {
|
||||
@@ -870,7 +870,7 @@ char* get_str_fma(struct cpuInfo* cpu) {
|
||||
|
||||
void print_debug(struct cpuInfo* cpu) {
|
||||
printf("%s\n", cpu->cpu_name);
|
||||
printf("- Max standart level: 0x%.8X\n", cpu->maxLevels);
|
||||
printf("- Max standard level: 0x%.8X\n", cpu->maxLevels);
|
||||
printf("- Max extended level: 0x%.8X\n", cpu->maxExtendedLevels);
|
||||
|
||||
free_cpuinfo_struct(cpu);
|
||||
|
||||
Reference in New Issue
Block a user