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 an error message.



details:   https://anonhg.NetBSD.org/src/rev/917d4152f39a
branches:  trunk
changeset: 544077:917d4152f39a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Mar 10 20:50:22 2003 +0000

description:
Fix an error message.

diffstat:

 sys/dev/pci/if_tlp_pci.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (49 lines):

diff -r a85abfed31ba -r 917d4152f39a sys/dev/pci/if_tlp_pci.c
--- a/sys/dev/pci/if_tlp_pci.c  Mon Mar 10 20:41:29 2003 +0000
+++ b/sys/dev/pci/if_tlp_pci.c  Mon Mar 10 20:50:22 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tlp_pci.c,v 1.71 2002/12/23 02:58:37 tsutsui Exp $  */
+/*     $NetBSD: if_tlp_pci.c,v 1.72 2003/03/10 20:50:22 thorpej Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.71 2002/12/23 02:58:37 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.72 2003/03/10 20:50:22 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h> 
@@ -512,7 +512,8 @@
                switch (reg & PCI_PMCSR_STATE_MASK) {
                case PCI_PMCSR_STATE_D1:
                case PCI_PMCSR_STATE_D2:
-                       printf(": waking up from power state D%d\n%s",
+                       printf("%s: waking up from power state D%d\n%s",
+                           sc->sc_dev.dv_xname,
                            reg & PCI_PMCSR_STATE_MASK, sc->sc_dev.dv_xname);
                        pci_conf_write(pc, pa->pa_tag, pmreg + PCI_PMCSR,
                            (reg & ~PCI_PMCSR_STATE_MASK) |
@@ -523,8 +524,8 @@
                         * The card has lost all configuration data in
                         * this state, so punt.
                         */
-                       printf(": unable to wake up from power state D3, "
-                              "reboot required.\n");
+                       printf("%s: unable to wake up from power state D3, "
+                              "reboot required.\n", sc->sc_dev.dv_xname);
                        pci_conf_write(pc, pa->pa_tag, pmreg + PCI_PMCSR,
                            (reg & ~PCI_PMCSR_STATE_MASK) |
                            PCI_PMCSR_STATE_D0);
@@ -549,7 +550,8 @@
                sc->sc_st = iot;
                sc->sc_sh = ioh;
        } else {
-               printf(": unable to map device registers\n");
+               printf("%s: unable to map device registers\n",
+                   sc->sc_dev.dv_xname);
                return;
        }
 



Home | Main Index | Thread Index | Old Index