summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authormsaitoh <msaitoh@NetBSD.org>2018-10-18 05:20:05 +0000
committermsaitoh <msaitoh@NetBSD.org>2018-10-18 05:20:05 +0000
commiteb6a7d3bcbf4e3b135b892cefb1e07eb61eaabc0 (patch)
tree7feb7bc3dd0c1d1516f47aa94ec299b5db1a92f9 /usr.sbin
parent10101dfcb711d957ab5ba2dc8270adfb278c3f97 (diff)
Fix output of Cache type in PPTT.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/acpitools/acpidump/acpi.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/acpitools/acpidump/acpi.c b/usr.sbin/acpitools/acpidump/acpi.c
index 38557236403..fbdf1734614 100644
--- a/usr.sbin/acpitools/acpidump/acpi.c
+++ b/usr.sbin/acpitools/acpidump/acpi.c
@@ -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 @@ acpi_print_pptt_cache(ACPI_PPTT_CACHE *cache)
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 @@ acpi_print_pptt_cache(ACPI_PPTT_CACHE *cache)
}
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;