diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-04-20 20:31:14 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-04-20 20:31:14 +0000 |
commit | de5376f6ab54105d367ef84762d22711310371e7 (patch) | |
tree | bf44ed50c2db9351ff55368d75f45c807cc72475 /sys/dev/pci/if_epic_pci.c | |
parent | e1d297c29cadf0be3ed3775c0cfbcd97d01d7b9a (diff) |
Fix various printf() issues: too many arguments, not enough arguments, argument
order reversed, wrong modifiers. ok deraadt@ marco@ mickey@
Diffstat (limited to 'sys/dev/pci/if_epic_pci.c')
-rw-r--r-- | sys/dev/pci/if_epic_pci.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/pci/if_epic_pci.c b/sys/dev/pci/if_epic_pci.c index 33bea022c41..e6f0d53ccd6 100644 --- a/sys/dev/pci/if_epic_pci.c +++ b/sys/dev/pci/if_epic_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_epic_pci.c,v 1.4 2005/12/15 23:17:23 krw Exp $ */ +/* $OpenBSD: if_epic_pci.c,v 1.5 2006/04/20 20:31:12 miod Exp $ */ /* $NetBSD: if_epic_pci.c,v 1.28 2005/02/27 00:27:32 perry Exp $ */ /*- @@ -167,7 +167,7 @@ epic_pci_attach(struct device *parent, struct device *self, void *aux) case PCI_PMCSR_STATE_D1: case PCI_PMCSR_STATE_D2: printf(": waking up from power state D%d\n", - sc->sc_dev.dv_xname, reg & PCI_PMCSR_STATE_MASK); + reg & PCI_PMCSR_STATE_MASK); pci_conf_write(pc, pa->pa_tag, pmreg + PCI_PMCSR, (reg & ~PCI_PMCSR_STATE_MASK) | PCI_PMCSR_STATE_D0); @@ -179,7 +179,7 @@ epic_pci_attach(struct device *parent, struct device *self, void *aux) */ printf( ": unable to wake up from power state D3, " - "reboot required.\n", sc->sc_dev.dv_xname); + "reboot required.\n"); pci_conf_write(pc, pa->pa_tag, pmreg + PCI_PMCSR, (reg & ~PCI_PMCSR_STATE_MASK) | PCI_PMCSR_STATE_D0); @@ -204,8 +204,7 @@ epic_pci_attach(struct device *parent, struct device *self, void *aux) sc->sc_st = iot; sc->sc_sh = ioh; } else { - printf(": unable to map device registers\n", - sc->sc_dev.dv_xname); + printf(": unable to map device registers\n"); return; } @@ -215,8 +214,7 @@ epic_pci_attach(struct device *parent, struct device *self, void *aux) * Map and establish our interrupt. */ if (pci_intr_map(pa, &ih)) { - printf(": unable to map interrupt\n", - sc->sc_dev.dv_xname); + printf(": unable to map interrupt\n"); return; } intrstr = pci_intr_string(pc, ih); |