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/wdc_pcmcia.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/pcmcia/wdc_pcmcia.c')
-rw-r--r-- | sys/dev/pcmcia/wdc_pcmcia.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |