summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-02-22 17:45:53 -0500
committerDave Jones <davej@redhat.com>2011-02-22 17:45:53 -0500
commit56c10d5dab7eac36ba082c3e300b1d24bed6854e (patch)
treef97f57686fc98fd74051cb9bfa5eadff9e4340ae
parent1c3af63583b7679612a0490d5e7be2d847ed646a (diff)
only display extended family/model if set
-rw-r--r--identify.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/identify.c b/identify.c
index 578228e..28f47b9 100644
--- a/identify.c
+++ b/identify.c
@@ -95,9 +95,11 @@ void identify(struct cpudata *cpu)
void show_info(struct cpudata *cpu)
{
- printf("EFamily: %u EModel: %u Family: %u Model: %u Stepping: %u\n",
- cpu->efamily, cpu->emodel, cpu->family,
- model(cpu), cpu->stepping);
+ if ((cpu->efamily != 0) || (cpu->emodel != 0))
+ printf("Extended Family: %u Extended Model: %u ",
+ cpu->efamily, cpu->emodel);
+ printf("Family: %u Model: %u Stepping: %u\n",
+ cpu->family, model(cpu), cpu->stepping);
printf("CPU Model (x86info's best guess): %s\n", cpu->name);
get_model_name(cpu);
printf("\n");