diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2007-10-22 23:00:46 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2007-10-22 23:00:46 +0000 |
commit | c09265ae199ebf1e4d7ef8d3ab846478d7a093e1 (patch) | |
tree | f985c89aef05fe936bf4f777a8f4263cb1953a87 /sys/dev/pci/if_pcn.c | |
parent | 0f994151a073841ff33e23da98323059b5c517b5 (diff) |
only output on situations where power state is D3. unify the message in
such cases. ok brad@ kettenis@
Diffstat (limited to 'sys/dev/pci/if_pcn.c')
-rw-r--r-- | sys/dev/pci/if_pcn.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/sys/dev/pci/if_pcn.c b/sys/dev/pci/if_pcn.c index 089bf7f5f46..2cd7d0dbe64 100644 --- a/sys/dev/pci/if_pcn.c +++ b/sys/dev/pci/if_pcn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pcn.c,v 1.16 2007/10/22 03:16:35 fgsch Exp $ */ +/* $OpenBSD: if_pcn.c,v 1.17 2007/10/22 23:00:45 fgsch Exp $ */ /* $NetBSD: if_pcn.c,v 1.26 2005/05/07 09:15:44 is Exp $ */ /* @@ -614,17 +614,14 @@ pcn_attach(struct device *parent, struct device *self, void *aux) /* Get it out of power save mode, if needed. */ state = pci_set_powerstate(pc, pa->pa_tag, PCI_PMCSR_STATE_D0); - if (state != PCI_PMCSR_STATE_D0) { - if (state == PCI_PMCSR_STATE_D3) { - /* - * The card has lost all configuration data in - * this state, so punt. - */ - printf(": unable to wake from power state D3\n"); - return; - } else { - printf(": waking up from power date D%d", state); - } + if (state == PCI_PMCSR_STATE_D3) { + /* + * The card has lost all configuration data in + * this state, so punt. + */ + printf(": unable to wake up from power state D3, " + "reboot required.\n"); + return; } /* |