Module Name: src
Committed By: msaitoh
Date: Thu Nov 15 04:53:54 UTC 2018
Modified Files:
src/sys/arch/x86/x86: procfs_machdep.c
Log Message:
- I misread ci_acpiid as ci_apicid... LAPIC ID is in ci_cpuid.
Print it correctly.
- ci_initapicid(Initial APIC ID) is uint32_t, so use %u.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/x86/x86/procfs_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/procfs_machdep.c
diff -u src/sys/arch/x86/x86/procfs_machdep.c:1.24 src/sys/arch/x86/x86/procfs_machdep.c:1.25
--- src/sys/arch/x86/x86/procfs_machdep.c:1.24 Mon Aug 20 08:53:48 2018
+++ src/sys/arch/x86/x86/procfs_machdep.c Thu Nov 15 04:53:54 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_machdep.c,v 1.24 2018/08/20 08:53:48 msaitoh Exp $ */
+/* $NetBSD: procfs_machdep.c,v 1.25 2018/11/15 04:53:54 msaitoh Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.24 2018/08/20 08:53:48 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.25 2018/11/15 04:53:54 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -421,9 +421,9 @@ procfs_getonecpu(int xcpu, struct cpu_in
left = 0;
l = snprintf(p, left,
- "apicid\t\t: %d\n"
- "initial apicid\t: %d\n",
- ci->ci_acpiid,
+ "apicid\t\t: %lu\n"
+ "initial apicid\t: %u\n",
+ ci->ci_cpuid,
ci->ci_initapicid
);
size += l;