summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2013-07-17 23:59:40 +1000
committerStefan Tauner <stefan.tauner@gmx.at>2013-07-23 12:06:24 +0200
commitdcea700762bc97bd7fcabf2e960d47805129aeb1 (patch)
tree5cd522d7d2438701de9169bc08a0168995beaad1 /util
parent0d2119da465fac01949385a74fc4ff4896550842 (diff)
inteltool: Print raw CPUID and make hexadecimal values unambiguous
The raw CPUID is useful for matching the directories under 'src/cpu/intel' and is not easy to find out otherwise because it is most often decoded already. The decoded values are not obviously hexadecimal so prepend them with 0x to make sure they are unambiguous. The output differences look like this: - CPU: Processor Type: 0, Family 6, Model 25, Stepping 2 + CPU: ID 0x20652, Processor Type 0x0, Family 0x6, Model 0x25, Stepping 0x2 Change-Id: Id47f0b00f8db931f0000451c8f63ac1e966442c4 Signed-off-by: Damien Zammit <damien@zamaudio.com> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: http://review.coreboot.org/3788 Reviewed-by: Stefan Tauner <stefan.tauner@gmx.at> Tested-by: build bot (Jenkins)
Diffstat (limited to 'util')
-rw-r--r--util/inteltool/inteltool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c
index 5cd964a34d..219d84ece6 100644
--- a/util/inteltool/inteltool.c
+++ b/util/inteltool/inteltool.c
@@ -374,8 +374,8 @@ int main(int argc, char *argv[])
* left-shifted "Extended Model" fields.
* http://download.intel.com/design/processor/applnots/24161832.pdf
*/
- printf("CPU: Processor Type: %x, Family %x, Model %x, Stepping %x\n",
- (id >> 12) & 0x3, ((id >> 8) & 0xf) + ((id >> 20) & 0xff),
+ printf("CPU: ID 0x%x, Processor Type 0x%x, Family 0x%x, Model 0x%x, Stepping 0x%x\n",
+ id, (id >> 12) & 0x3, ((id >> 8) & 0xf) + ((id >> 20) & 0xff),
((id >> 12) & 0xf0) + ((id >> 4) & 0xf), (id & 0xf));
/* Determine names */