Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix a bug that the specification revision of the...



details:   https://anonhg.NetBSD.org/src/rev/bf85d83226d2
branches:  trunk
changeset: 803349:bf85d83226d2
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Oct 23 13:40:15 2014 +0000

description:
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.

diffstat:

 sys/dev/pci/pci_subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r fba64ca762b2 -r bf85d83226d2 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c    Thu Oct 23 12:16:25 2014 +0000
+++ b/sys/dev/pci/pci_subr.c    Thu Oct 23 13:40:15 2014 +0000
@@ -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 @@
                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:



Home | Main Index | Thread Index | Old Index