summaryrefslogtreecommitdiff
path: root/Cyrix
diff options
context:
space:
mode:
authordavej <davej>2001-12-10 18:01:36 +0000
committerdavej <davej>2001-12-10 18:01:36 +0000
commit945b5acadf4dc4bacf570e16bdb4eda59836eca7 (patch)
treed26391d48b5cd07dbe424fab5eccd67a47e39c23 /Cyrix
parente821a84ec4768b24d53fbb57429328a4a0d3505e (diff)
Fix misplaced { } in Cyrix detection. By Dave <dave@iol.cz>
Diffstat (limited to 'Cyrix')
-rw-r--r--Cyrix/identify.c30
1 files changed, 21 insertions, 9 deletions
diff --git a/Cyrix/identify.c b/Cyrix/identify.c
index 22515cd..d9265b6 100644
--- a/Cyrix/identify.c
+++ b/Cyrix/identify.c
@@ -1,5 +1,5 @@
/*
- * $Id: identify.c,v 1.3 2001/12/10 17:52:15 davej Exp $
+ * $Id: identify.c,v 1.4 2001/12/10 18:01:36 davej Exp $
* This file is part of x86info.
* (C) 2001 Dave Jones.
*
@@ -43,16 +43,25 @@ void Identify_Cyrix (unsigned int maxi, unsigned int maxei, struct cpudata *cpu)
cpu->family = (eax >> 8) & 0xf;
switch (cpu->family) {
- case 4: if (cpu->model==5) sprintf (cpu->name, "%s", "MediaGX"); break;
+ case 4: if (cpu->model==5) {
+ sprintf (cpu->name, "%s", "MediaGX");
+ break;
+ }
sprintf (cpu->name, "%s", "Unknown CPU");
break;
case 5: switch (cpu->model) {
- case 2: sprintf (cpu->name, "%s", "6x86"); break;
- case 4: sprintf (cpu->name, "%s", "GXm"); break;
- default:sprintf (cpu->name, "%s", "Unknown CPU"); break;
+ case 2: sprintf (cpu->name, "%s", "6x86");
+ break;
+ case 4: sprintf (cpu->name, "%s", "GXm");
+ break;
+ default:sprintf (cpu->name, "%s", "Unknown CPU");
+ break;
}
break;
- case 6: if (cpu->model==0) sprintf (cpu->name, "%s", "6x86/MX"); break;
+ case 6: if (cpu->model==0) {
+ sprintf (cpu->name, "%s", "6x86/MX");
+ break;
+ }
sprintf (cpu->name, "%s", "Unknown CPU");
break;
}
@@ -68,9 +77,12 @@ void Identify_Cyrix (unsigned int maxi, unsigned int maxei, struct cpudata *cpu)
cpu->family = (eax >> 8) & 0xf;
switch (cpu->family) {
- case 4: sprintf (cpu->name, "MediaGX"); break;
- case 5: sprintf (cpu->name, "6x86/GXm"); break;
- case 6: sprintf (cpu->name, "6x86/MX"); break;
+ case 4: sprintf (cpu->name, "MediaGX");
+ break;
+ case 5: sprintf (cpu->name, "6x86/GXm");
+ break;
+ case 6: sprintf (cpu->name, "6x86/MX");
+ break;
}
}