Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 - I misread ci_acpiid as ci_apicid... LAPIC...



details:   https://anonhg.NetBSD.org/src/rev/f34506048327
branches:  trunk
changeset: 994595:f34506048327
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Nov 15 04:53:54 2018 +0000

description:
- 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 e2c9a28a8cd5 -r f34506048327 sys/arch/x86/x86/procfs_machdep.c
--- a/sys/arch/x86/x86/procfs_machdep.c Thu Nov 15 04:37:20 2018 +0000
+++ b/sys/arch/x86/x86/procfs_machdep.c Thu Nov 15 04:53:54 2018 +0000
@@ -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 @@
                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