diff options
author | Dave Jones <davej@redhat.com> | 2011-02-22 17:45:53 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2011-02-22 17:45:53 -0500 |
commit | 56c10d5dab7eac36ba082c3e300b1d24bed6854e (patch) | |
tree | f97f57686fc98fd74051cb9bfa5eadff9e4340ae | |
parent | 1c3af63583b7679612a0490d5e7be2d847ed646a (diff) |
only display extended family/model if set
-rw-r--r-- | identify.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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"); |