Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/acpitools/acpidump Fix output of Cache type in PPTT.



details:   https://anonhg.NetBSD.org/src/rev/95eecb10ed7f
branches:  trunk
changeset: 836445:95eecb10ed7f
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Oct 18 05:20:05 2018 +0000

description:
Fix output of Cache type in PPTT.

diffstat:

 usr.sbin/acpitools/acpidump/acpi.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r 06e5751aa54b -r 95eecb10ed7f usr.sbin/acpitools/acpidump/acpi.c
--- a/usr.sbin/acpitools/acpidump/acpi.c        Thu Oct 18 05:04:44 2018 +0000
+++ b/usr.sbin/acpitools/acpidump/acpi.c        Thu Oct 18 05:20:05 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi.c,v 1.37 2018/10/18 05:04:44 msaitoh Exp $ */
+/* $NetBSD: acpi.c,v 1.38 2018/10/18 05:20:05 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1998 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: acpi.c,v 1.37 2018/10/18 05:04:44 msaitoh Exp $");
+__RCSID("$NetBSD: acpi.c,v 1.38 2018/10/18 05:20:05 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/endian.h>
@@ -2102,8 +2102,7 @@
                printf("\tAssociativity=%d\n", cache->Associativity);
        if (cache->Flags & ACPI_PPTT_ALLOCATION_TYPE_VALID) {
                printf("\tAllocation type=");
-               switch (__SHIFTOUT(cache->Attributes,
-                       ACPI_PPTT_MASK_ALLOCATION_TYPE)) {
+               switch (cache->Attributes & ACPI_PPTT_MASK_ALLOCATION_TYPE) {
                case ACPI_PPTT_CACHE_READ_ALLOCATE:
                        printf("Read allocate\n");
                        break;
@@ -2118,8 +2117,7 @@
        }
        if (cache->Flags & ACPI_PPTT_CACHE_TYPE_VALID) {
                printf("\tCache type=");
-               switch (__SHIFTOUT(cache->Attributes,
-                       ACPI_PPTT_MASK_CACHE_TYPE)) {
+               switch (cache->Attributes & ACPI_PPTT_MASK_CACHE_TYPE) {
                case ACPI_PPTT_CACHE_TYPE_DATA:
                        printf("Data\n");
                        break;



Home | Main Index | Thread Index | Old Index