Improve kernel message when card is in power state D3. Instead of...
epic0 at pci0 dev 11 function 0 epic0: unable to wake up from ... ... print this: epic0 at pci0 dev 11 function 0: unable to wake up from power state D3
This commit is contained in:
parent
a6273c2690
commit
61c607b9fe
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_epic_pci.c,v 1.8 2000/07/14 22:00:32 tron Exp $ */
|
||||
/* $NetBSD: if_epic_pci.c,v 1.9 2000/07/15 10:32:36 tron Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -173,13 +173,12 @@ epic_pci_attach(parent, self, aux)
|
|||
* The card has lost all configuration data in
|
||||
* this state, so punt.
|
||||
*/
|
||||
printf("%s: unable to wake up from power state D3\n",
|
||||
sc->sc_dev.dv_xname);
|
||||
printf(": unable to wake up from power state D3\n");
|
||||
return;
|
||||
}
|
||||
if (reg != 0) {
|
||||
printf("%s: waking up from power state D%d\n",
|
||||
sc->sc_dev.dv_xname, reg);
|
||||
printf(": waking up from power state D%d\n%s: ",
|
||||
reg, sc->sc_dev.dv_xname);
|
||||
pci_conf_write(pc, pa->pa_tag, pmreg + 4, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_tlp_pci.c,v 1.40 2000/06/25 18:49:22 sommerfeld Exp $ */
|
||||
/* $NetBSD: if_tlp_pci.c,v 1.41 2000/07/15 10:32:37 tron Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -488,13 +488,12 @@ tlp_pci_attach(parent, self, aux)
|
|||
* The card has lost all configuration data in
|
||||
* this state, so punt.
|
||||
*/
|
||||
printf("%s: unable to wake up from power state D3\n",
|
||||
sc->sc_dev.dv_xname);
|
||||
printf(": unable to wake up from power state D3\n");
|
||||
return;
|
||||
}
|
||||
if (reg != 0) {
|
||||
printf("%s: waking up from power state D%d\n",
|
||||
sc->sc_dev.dv_xname, reg);
|
||||
printf(": waking up from power state D%d\n%s: ",
|
||||
reg, sc->sc_dev.dv_xname);
|
||||
pci_conf_write(pc, pa->pa_tag, pmreg + 4, 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue