[v0.94] Do not consider missing frequency file in x86_64 as a bug. Fix typos

This commit is contained in:
Dr-Noob
2020-12-26 08:52:14 +01:00
parent 1ef6daf943
commit 56a1da3428
2 changed files with 2 additions and 7 deletions

View File

@@ -32,12 +32,7 @@ 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");
printBug("Could not open '%s'", path);
#elif ARCH_ARM
printWarn("Could not open '%s'", path); printWarn("Could not open '%s'", path);
#endif
return UNKNOWN_FREQ; return UNKNOWN_FREQ;
} }

View File

@@ -594,7 +594,7 @@ struct cache* get_cache_info(struct cpuInfo* cpu) {
uint32_t level; uint32_t level;
// We use standart 0x00000004 for Intel // We use standard 0x00000004 for Intel
// We use extended 0x8000001D for AMD // We use extended 0x8000001D for AMD
// or 0x80000005/6 for old AMD // or 0x80000005/6 for old AMD
if(cpu->cpu_vendor == CPU_VENDOR_INTEL) { if(cpu->cpu_vendor == CPU_VENDOR_INTEL) {
@@ -870,7 +870,7 @@ char* get_str_fma(struct cpuInfo* cpu) {
void print_debug(struct cpuInfo* cpu) { void print_debug(struct cpuInfo* cpu) {
printf("%s\n", cpu->cpu_name); 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); printf("- Max extended level: 0x%.8X\n", cpu->maxExtendedLevels);
free_cpuinfo_struct(cpu); free_cpuinfo_struct(cpu);