Module Name: src Committed By: martin Date: Sun Nov 18 11:16:52 UTC 2018
Modified Files: src/sys/arch/x86/x86 [netbsd-8]: procfs_machdep.c Log Message: Pull up following revision(s) (requested by msaitoh in ticket #1094): sys/arch/x86/x86/procfs_machdep.c: revision 1.25 - 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.15.2.6 -r1.15.2.7 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.15.2.6 src/sys/arch/x86/x86/procfs_machdep.c:1.15.2.7 --- src/sys/arch/x86/x86/procfs_machdep.c:1.15.2.6 Sun Sep 23 17:35:33 2018 +++ src/sys/arch/x86/x86/procfs_machdep.c Sun Nov 18 11:16:52 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: procfs_machdep.c,v 1.15.2.6 2018/09/23 17:35:33 martin Exp $ */ +/* $NetBSD: procfs_machdep.c,v 1.15.2.7 2018/11/18 11:16:52 martin Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.15.2.6 2018/09/23 17:35:33 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.15.2.7 2018/11/18 11:16:52 martin 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;