Consistently use spaces in between arguments to strcmp(). Whitespace

only.
This commit is contained in:
John Baldwin 2003-01-08 19:16:11 +00:00
parent ae5c9e57b8
commit 338633abf8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108961
2 changed files with 6 additions and 6 deletions

View File

@ -142,7 +142,7 @@ printcpuinfo(void)
strncpy(cpu_model, i386_cpus[cpu].cpu_name, sizeof cpu_model);
#if defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU)
if (strcmp(cpu_vendor,"GenuineIntel") == 0) {
if (strcmp(cpu_vendor, "GenuineIntel") == 0) {
if ((cpu_id & 0xf00) > 0x300) {
u_int brand_index;
@ -275,7 +275,7 @@ printcpuinfo(void)
cpu_brandtable[brand_index]);
}
}
} else if (strcmp(cpu_vendor,"AuthenticAMD") == 0) {
} else if (strcmp(cpu_vendor, "AuthenticAMD") == 0) {
/*
* Values taken from AMD Processor Recognition
* http://www.amd.com/K6/k6docs/pdf/20734g.pdf
@ -347,7 +347,7 @@ printcpuinfo(void)
enable_K6_wt_alloc();
}
#endif
} else if (strcmp(cpu_vendor,"CyrixInstead") == 0) {
} else if (strcmp(cpu_vendor, "CyrixInstead") == 0) {
strcpy(cpu_model, "Cyrix ");
switch (cpu_id & 0xff0) {
case 0x440:

View File

@ -142,7 +142,7 @@ printcpuinfo(void)
strncpy(cpu_model, i386_cpus[cpu].cpu_name, sizeof cpu_model);
#if defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU)
if (strcmp(cpu_vendor,"GenuineIntel") == 0) {
if (strcmp(cpu_vendor, "GenuineIntel") == 0) {
if ((cpu_id & 0xf00) > 0x300) {
u_int brand_index;
@ -275,7 +275,7 @@ printcpuinfo(void)
cpu_brandtable[brand_index]);
}
}
} else if (strcmp(cpu_vendor,"AuthenticAMD") == 0) {
} else if (strcmp(cpu_vendor, "AuthenticAMD") == 0) {
/*
* Values taken from AMD Processor Recognition
* http://www.amd.com/K6/k6docs/pdf/20734g.pdf
@ -347,7 +347,7 @@ printcpuinfo(void)
enable_K6_wt_alloc();
}
#endif
} else if (strcmp(cpu_vendor,"CyrixInstead") == 0) {
} else if (strcmp(cpu_vendor, "CyrixInstead") == 0) {
strcpy(cpu_model, "Cyrix ");
switch (cpu_id & 0xff0) {
case 0x440: