From 1ce98d95e85d1e02d049e205f1a1b687d150bdaa Mon Sep 17 00:00:00 2001 From: Veselin Georgiev Date: Thu, 20 Nov 2008 16:14:59 +0000 Subject: [PATCH] Family/Model/Stepping data is reported as hex, too git-svn-id: https://svn.code.sf.net/p/libcpuid/code/HEAD/libcpuid@23 3b4be424-7ac5-41d7-8526-f4ddcb85d872 --- cpuid_tool/cpuid_tool.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpuid_tool/cpuid_tool.c b/cpuid_tool/cpuid_tool.c index 5628639..27e145d 100644 --- a/cpuid_tool/cpuid_tool.c +++ b/cpuid_tool/cpuid_tool.c @@ -490,11 +490,11 @@ int main(int argc, char** argv) fprintf(fout, " vendor_str : `%s'\n", data.vendor_str); fprintf(fout, " vendor id : %d\n", (int) data.vendor); fprintf(fout, " brand_str : `%s'\n", data.brand_str); - fprintf(fout, " family : %d\n", data.family); - fprintf(fout, " model : %d\n", data.model); - fprintf(fout, " stepping : %d\n", data.stepping); - fprintf(fout, " ext_family : %d\n", data.ext_family); - fprintf(fout, " ext_model : %d\n", data.ext_model); + fprintf(fout, " family : %d (%02Xh)\n", data.family, data.family); + fprintf(fout, " model : %d (%02Xh)\n", data.model, data.model); + fprintf(fout, " stepping : %d (%02Xh)\n", data.stepping, data.stepping); + fprintf(fout, " ext_family : %d (%02Xh)\n", data.ext_family, data.ext_family); + fprintf(fout, " ext_model : %d (%02Xh)\n", data.ext_model, data.ext_model); fprintf(fout, " num_cores : %d\n", data.num_cores); fprintf(fout, " num_logical: %d\n", data.num_logical_cpus); fprintf(fout, " total_cpus : %d\n", data.total_cpus);