Module Name: src Committed By: msaitoh Date: Thu Oct 23 13:40:15 UTC 2014
Modified Files: src/sys/dev/pci: pci_subr.c Log Message: Fix a bug that the specification revision of the Power Management function was incorrectly printed in the output of capability "list". The value is also printed in the detail output and it has no bug. To generate a diff of this commit: cvs rdiff -u -r1.130 -r1.131 src/sys/dev/pci/pci_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/pci_subr.c diff -u src/sys/dev/pci/pci_subr.c:1.130 src/sys/dev/pci/pci_subr.c:1.131 --- src/sys/dev/pci/pci_subr.c:1.130 Thu Oct 23 09:59:56 2014 +++ src/sys/dev/pci/pci_subr.c Thu Oct 23 13:40:15 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_subr.c,v 1.130 2014/10/23 09:59:56 msaitoh Exp $ */ +/* $NetBSD: pci_subr.c,v 1.131 2014/10/23 13:40:15 msaitoh Exp $ */ /* * Copyright (c) 1997 Zubin D. Dittia. All rights reserved. @@ -40,7 +40,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.130 2014/10/23 09:59:56 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.131 2014/10/23 13:40:15 msaitoh Exp $"); #ifdef _KERNEL_OPT #include "opt_pci.h" @@ -1823,7 +1823,7 @@ pci_conf_print_caplist( case PCI_CAP_PWRMGMT: printf("Power Management, rev. %s", pci_conf_print_pcipm_cap_pmrev( - (rval >> 0) & 0x07)); + (rval >> 16) & 0x07)); pcipm_off = off; break; case PCI_CAP_AGP: