summaryrefslogtreecommitdiff
path: root/Intel
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-02-18 14:28:03 -0500
committerDave Jones <davej@redhat.com>2011-02-18 14:28:03 -0500
commit8412e24a575fda51cb46ae4021c101b99522faad (patch)
treeebcb8e4bfe64a8301f804e655ddb04bc82021b5d /Intel
parent16809ddb1f5577608289a6c35a7bc8064cebfd06 (diff)
don't display 'type' if it's reserved.
Diffstat (limited to 'Intel')
-rw-r--r--Intel/info.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/Intel/info.c b/Intel/info.c
index 20a3afa..85d1acc 100644
--- a/Intel/info.c
+++ b/Intel/info.c
@@ -98,18 +98,20 @@ static void decode_brand(struct cpudata *cpu)
void display_Intel_info(struct cpudata *cpu)
{
- printf("Type: %u (", cpu->type);
- switch (cpu->type) {
- case 0: printf("Original OEM");
- break;
- case 1: printf("Overdrive");
- break;
- case 2: printf("Dual-capable");
- break;
- case 3: printf("Reserved");
- break;
+ if (cpu->type != 3) {
+ printf("Type: %u (", cpu->type);
+ switch (cpu->type) {
+ case 0: printf("Original OEM");
+ break;
+ case 1: printf("Overdrive");
+ break;
+ case 2: printf("Dual-capable");
+ break;
+ }
+ printf(")\n");
}
+
if (cpu->brand > 0)
decode_brand(cpu);