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/pcmcia | |
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/pcmcia')
-rw-r--r-- | sys/dev/pcmcia/aic_pcmcia.c | 5 | ||||
-rw-r--r-- | sys/dev/pcmcia/com_pcmcia.c | 5 | ||||
-rw-r--r-- | sys/dev/pcmcia/if_sm_pcmcia.c | 5 | ||||
-rw-r--r-- | sys/dev/pcmcia/if_wi_pcmcia.c | 5 | ||||
-rw-r--r-- | sys/dev/pcmcia/wdc_pcmcia.c | 10 |
5 files changed, 17 insertions, 13 deletions
diff --git a/sys/dev/pcmcia/aic_pcmcia.c b/sys/dev/pcmcia/aic_pcmcia.c index 0734bf9b600..39adae6ae6f 100644 --- a/sys/dev/pcmcia/aic_pcmcia.c +++ b/sys/dev/pcmcia/aic_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic_pcmcia.c,v 1.12 2005/11/21 18:16:41 millert Exp $ */ +/* $OpenBSD: aic_pcmcia.c,v 1.13 2006/04/20 20:31:13 miod Exp $ */ /* $NetBSD: aic_pcmcia.c,v 1.6 1998/07/19 17:28:15 christos Exp $ */ /* @@ -153,7 +153,8 @@ aic_pcmcia_attach(parent, self, aux) return; } - printf(" port 0x%lx/%d", psc->sc_pcioh.addr, psc->sc_pcioh.size); + printf(" port 0x%lx/%lu", psc->sc_pcioh.addr, + (u_long)psc->sc_pcioh.size); if (!aic_find(sc->sc_iot, sc->sc_ioh)) { printf(": unable to detect chip!\n"); diff --git a/sys/dev/pcmcia/com_pcmcia.c b/sys/dev/pcmcia/com_pcmcia.c index ee3327a5364..e5a9f82acf4 100644 --- a/sys/dev/pcmcia/com_pcmcia.c +++ b/sys/dev/pcmcia/com_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_pcmcia.c,v 1.44 2005/12/13 23:07:31 mickey Exp $ */ +/* $OpenBSD: com_pcmcia.c,v 1.45 2006/04/20 20:31:13 miod Exp $ */ /* $NetBSD: com_pcmcia.c,v 1.15 1998/08/22 17:47:58 msaitoh Exp $ */ /* @@ -318,7 +318,8 @@ found: return; } - printf(" port 0x%lx/%d", psc->sc_pcioh.addr, psc->sc_pcioh.size); + printf(" port 0x%lx/%lu", psc->sc_pcioh.addr, + (u_long)psc->sc_pcioh.size); sc->sc_iobase = -1; sc->enable = com_pcmcia_enable; diff --git a/sys/dev/pcmcia/if_sm_pcmcia.c b/sys/dev/pcmcia/if_sm_pcmcia.c index f5d1262d6d3..c496caa3a87 100644 --- a/sys/dev/pcmcia/if_sm_pcmcia.c +++ b/sys/dev/pcmcia/if_sm_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sm_pcmcia.c,v 1.25 2006/01/23 14:42:55 martin Exp $ */ +/* $OpenBSD: if_sm_pcmcia.c,v 1.26 2006/04/20 20:31:13 miod Exp $ */ /* $NetBSD: if_sm_pcmcia.c,v 1.11 1998/08/15 20:47:32 thorpej Exp $ */ /*- @@ -189,7 +189,8 @@ sm_pcmcia_attach(parent, self, aux) return; } - printf(" port 0x%lx/%d", psc->sc_pcioh.addr, psc->sc_pcioh.size); + printf(" port 0x%lx/%lu", psc->sc_pcioh.addr, + (u_long)psc->sc_pcioh.size); /* * First try to get the Ethernet address from FUNCE/LANNID tuple. diff --git a/sys/dev/pcmcia/if_wi_pcmcia.c b/sys/dev/pcmcia/if_wi_pcmcia.c index 5355ea86bda..112dc6dee20 100644 --- a/sys/dev/pcmcia/if_wi_pcmcia.c +++ b/sys/dev/pcmcia/if_wi_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi_pcmcia.c,v 1.64 2005/10/31 05:37:13 jsg Exp $ */ +/* $OpenBSD: if_wi_pcmcia.c,v 1.65 2006/04/20 20:31:13 miod Exp $ */ /* $NetBSD: if_wi_pcmcia.c,v 1.14 2001/11/26 04:34:56 ichiro Exp $ */ /* @@ -405,7 +405,8 @@ wi_pcmcia_attach(struct device *parent, struct device *self, void *aux) } state++; - printf(" port 0x%lx/%d", psc->sc_pcioh.addr, psc->sc_pcioh.size); + printf(" port 0x%lx/%lu", psc->sc_pcioh.addr, + (u_long)psc->sc_pcioh.size); sc->wi_ltag = sc->wi_btag = psc->sc_pcioh.iot; sc->wi_lhandle = sc->wi_bhandle = psc->sc_pcioh.ioh; diff --git a/sys/dev/pcmcia/wdc_pcmcia.c b/sys/dev/pcmcia/wdc_pcmcia.c index 98426340090..47567962991 100644 --- a/sys/dev/pcmcia/wdc_pcmcia.c +++ b/sys/dev/pcmcia/wdc_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc_pcmcia.c,v 1.16 2005/01/27 17:04:56 millert Exp $ */ +/* $OpenBSD: wdc_pcmcia.c,v 1.17 2006/04/20 20:31:13 miod Exp $ */ /* $NetBSD: wdc_pcmcia.c,v 1.19 1999/02/19 21:49:43 abs Exp $ */ /*- @@ -333,11 +333,11 @@ wdc_pcmcia_attach(parent, self, aux) goto iomapaux_failed; } - printf(" port 0x%lx/%d", - sc->sc_pioh.addr, sc->sc_pioh.size); + printf(" port 0x%lx/%lu", + sc->sc_pioh.addr, (u_long)sc->sc_pioh.size); if (cfe->num_iospace > 1 && sc->sc_auxpioh.size > 0) - printf(",0x%lx/%d", - sc->sc_auxpioh.addr, sc->sc_auxpioh.size); + printf(",0x%lx/%lu", + sc->sc_auxpioh.addr, (u_long)sc->sc_auxpioh.size); sc->wdc_channel.cmd_iot = sc->sc_pioh.iot; sc->wdc_channel.cmd_ioh = sc->sc_pioh.ioh; |