diff options
author | des <des@FreeBSD.org> | 2010-11-08 12:04:41 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2010-11-08 12:04:41 +0000 |
commit | 543d80b9c53d433f85252438c10fc9f781f40139 (patch) | |
tree | b2943c473900612f295de4280ae239793853a531 /sys/compat/linprocfs | |
parent | 01da74f0b1771e49c724c00728fb5ee21d5eae60 (diff) | |
download | FreeBSD-src-543d80b9c53d433f85252438c10fc9f781f40139.zip FreeBSD-src-543d80b9c53d433f85252438c10fc9f781f40139.tar.gz |
Fix CPU ID in /proc/cpuinfo.
PR: kern/56451
Submitted by: arundel@
MFC after: 3 weeks
Diffstat (limited to 'sys/compat/linprocfs')
-rw-r--r-- | sys/compat/linprocfs/linprocfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 76c8c37..88b9150 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -276,11 +276,11 @@ linprocfs_docpuinfo(PFS_FILL_ARGS) sbuf_printf(sb, "processor\t: %d\n" "vendor_id\t: %.20s\n" - "cpu family\t: %d\n" - "model\t\t: %d\n" + "cpu family\t: %u\n" + "model\t\t: %u\n" "model name\t: %s\n" - "stepping\t: %d\n\n", - i, cpu_vendor, class, cpu, model, cpu_id & 0xf); + "stepping\t: %u\n\n", + i, cpu_vendor, CPUID_TO_FAMILY(cpu_id), CPUID_TO_MODEL(cpu_id), model, cpu_id & CPUID_STEPPING); /* XXX per-cpu vendor / class / model / id? */ } |