From eb6a7d3bcbf4e3b135b892cefb1e07eb61eaabc0 Mon Sep 17 00:00:00 2001 From: msaitoh Date: Thu, 18 Oct 2018 05:20:05 +0000 Subject: Fix output of Cache type in PPTT. --- usr.sbin/acpitools/acpidump/acpi.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'usr.sbin/acpitools') 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 -__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 #include @@ -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; -- cgit