Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/arch/x86/x86 Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/b6f0108293df
branches:  netbsd-8
changeset: 445934:b6f0108293df
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Nov 18 11:16:52 2018 +0000

description:
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.

diffstat:

 sys/arch/x86/x86/procfs_machdep.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r ffbe4622d372 -r b6f0108293df sys/arch/x86/x86/procfs_machdep.c
--- a/sys/arch/x86/x86/procfs_machdep.c Tue Nov 13 16:57:45 2018 +0000
+++ b/sys/arch/x86/x86/procfs_machdep.c Sun Nov 18 11:16:52 2018 +0000
@@ -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 @@
                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;



Home | Main Index | Thread Index | Old Index