diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2014-05-04 20:09:16 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2014-05-04 20:09:16 +0000 |
commit | 4be89f79911bec24362f5ba21986c3fb06705efb (patch) | |
tree | 9be9e830d1f874fddb3f59b5c43eaa9c5298f0b3 /sys/dev | |
parent | d86c60b8e115f0f6c93348f311c7025836af60f2 (diff) |
format string fixes for bus_addr_t and bus_size_t
bus_addr_t and bus_size_t are u_long everywhere
ok kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/mfi.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/bktr/bktr_core.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/gdt_pci.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/pci.c | 14 | ||||
-rw-r--r-- | sys/dev/pci/ubsec.c | 6 | ||||
-rw-r--r-- | sys/dev/pcmcia/if_ep_pcmcia.c | 4 | ||||
-rw-r--r-- | sys/dev/pcmcia/if_malo.c | 4 |
7 files changed, 20 insertions, 20 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index 05a52d3c6be..cb8412eec15 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.151 2014/02/20 11:13:44 kettenis Exp $ */ +/* $OpenBSD: mfi.c,v 1.152 2014/05/04 20:09:15 sf Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@peereboom.us> * @@ -733,7 +733,7 @@ mfi_attach(struct mfi_softc *sc, enum mfi_iop iop) } /* XXX hack, fix this */ if (MFIMEM_DVA(sc->sc_frames) & 0x3f) { - printf("%s: improper frame alignment (%#x) FIXME\n", + printf("%s: improper frame alignment (%#lx) FIXME\n", DEVNAME(sc), MFIMEM_DVA(sc->sc_frames)); goto noframe; } diff --git a/sys/dev/pci/bktr/bktr_core.c b/sys/dev/pci/bktr/bktr_core.c index 58cee989a0a..c518c28b94d 100644 --- a/sys/dev/pci/bktr/bktr_core.c +++ b/sys/dev/pci/bktr/bktr_core.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bktr_core.c,v 1.32 2013/11/26 20:33:18 deraadt Exp $ */ +/* $OpenBSD: bktr_core.c,v 1.33 2014/05/04 20:09:15 sf Exp $ */ /* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */ /* @@ -386,7 +386,7 @@ common_bktr_attach( bktr_ptr_t bktr, int unit, u_int pci_id, u_int rev ) buf = 0; if ( bootverbose ) { - printf("%s: buffer size %d, addr 0x%x\n", + printf("%s: buffer size %d, addr 0x%lx\n", bktr_name(bktr), BROOKTREE_ALLOC, bktr->dm_prog->dm_segs->ds_addr); } diff --git a/sys/dev/pci/gdt_pci.c b/sys/dev/pci/gdt_pci.c index 5441b56e244..87004b36c27 100644 --- a/sys/dev/pci/gdt_pci.c +++ b/sys/dev/pci/gdt_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gdt_pci.c,v 1.22 2009/03/29 21:53:52 sthen Exp $ */ +/* $OpenBSD: gdt_pci.c,v 1.23 2014/05/04 20:09:15 sf Exp $ */ /* * Copyright (c) 1999, 2000 Niklas Hallqvist. All rights reserved. @@ -445,7 +445,7 @@ gdt_pci_attach(struct device *parent, struct device *self, void *aux) bus_space_write_4(dpmemt, dpmemh, GDT_MPR_IC, GDT_MPR_MAGIC); if (bus_space_read_4(dpmemt, dpmemh, GDT_MPR_IC) != GDT_MPR_MAGIC) { - printf("cannot access DPMEM at 0x%x (shadowed?)\n", + printf("cannot access DPMEM at 0x%lx (shadowed?)\n", dpmembase); goto bail_out; } diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index b217c8c54e9..80265afb75e 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci.c,v 1.101 2013/12/06 21:03:04 deraadt Exp $ */ +/* $OpenBSD: pci.c,v 1.102 2014/05/04 20:09:15 sf Exp $ */ /* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */ /* @@ -846,7 +846,7 @@ pci_reserve_resources(struct pci_attach_args *pa) } if (pa->pa_memex && extent_alloc_region(pa->pa_memex, base, size, EX_NOWAIT)) { - printf("%d:%d:%d: mem address conflict 0x%x/0x%x\n", + printf("%d:%d:%d: mem address conflict 0x%lx/0x%lx\n", bus, dev, func, base, size); pci_conf_write(pc, tag, reg, 0); if (type & PCI_MAPREG_MEM_TYPE_64BIT) @@ -856,7 +856,7 @@ pci_reserve_resources(struct pci_attach_args *pa) case PCI_MAPREG_TYPE_IO: if (pa->pa_ioex && extent_alloc_region(pa->pa_ioex, base, size, EX_NOWAIT)) { - printf("%d:%d:%d: io address conflict 0x%x/0x%x\n", + printf("%d:%d:%d: io address conflict 0x%lx/0x%lx\n", bus, dev, func, base, size); pci_conf_write(pc, tag, reg, 0); } @@ -883,7 +883,7 @@ pci_reserve_resources(struct pci_attach_args *pa) size = 0; if (pa->pa_ioex && base > 0 && size > 0) { if (extent_alloc_region(pa->pa_ioex, base, size, EX_NOWAIT)) { - printf("%d:%d:%d: bridge io address conflict 0x%x/0x%x\n", + printf("%d:%d:%d: bridge io address conflict 0x%lx/0x%lx\n", bus, dev, func, base, size); blr &= 0xffff0000; blr |= 0x000000f0; @@ -901,7 +901,7 @@ pci_reserve_resources(struct pci_attach_args *pa) size = 0; if (pa->pa_memex && base > 0 && size > 0) { if (extent_alloc_region(pa->pa_memex, base, size, EX_NOWAIT)) { - printf("%d:%d:%d: bridge mem address conflict 0x%x/0x%x\n", + printf("%d:%d:%d: bridge mem address conflict 0x%lx/0x%lx\n", bus, dev, func, base, size); pci_conf_write(pc, tag, PPB_REG_MEM, 0x0000fff0); } @@ -917,13 +917,13 @@ pci_reserve_resources(struct pci_attach_args *pa) size = 0; if (pa->pa_pmemex && base > 0 && size > 0) { if (extent_alloc_region(pa->pa_pmemex, base, size, EX_NOWAIT)) { - printf("%d:%d:%d: bridge mem address conflict 0x%x/0x%x\n", + printf("%d:%d:%d: bridge mem address conflict 0x%lx/0x%lx\n", bus, dev, func, base, size); pci_conf_write(pc, tag, PPB_REG_PREFMEM, 0x0000fff0); } } else if (pa->pa_memex && base > 0 && size > 0) { if (extent_alloc_region(pa->pa_memex, base, size, EX_NOWAIT)) { - printf("%d:%d:%d: bridge mem address conflict 0x%x/0x%x\n", + printf("%d:%d:%d: bridge mem address conflict 0x%lx/0x%lx\n", bus, dev, func, base, size); pci_conf_write(pc, tag, PPB_REG_PREFMEM, 0x0000fff0); } diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c index abb20a84648..e9f765e6719 100644 --- a/sys/dev/pci/ubsec.c +++ b/sys/dev/pci/ubsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ubsec.c,v 1.156 2013/12/22 11:05:58 sf Exp $ */ +/* $OpenBSD: ubsec.c,v 1.157 2014/05/04 20:09:15 sf Exp $ */ /* * Copyright (c) 2000 Jason L. Wright (jason@thought.net) @@ -2470,12 +2470,12 @@ ubsec_kprocess_rsapriv(struct ubsec_softc *sc, struct cryptkop *krp) #ifdef DIAGNOSTIC if (rp->rpr_msgin.dma_paddr & 3 || rp->rpr_msgin.dma_size & 3) { - panic("%s: rsapriv: invalid msgin %08x(0x%x)", + panic("%s: rsapriv: invalid msgin %08x(0x%lx)", sc->sc_dv.dv_xname, rp->rpr_msgin.dma_paddr, rp->rpr_msgin.dma_size); } if (rp->rpr_msgout.dma_paddr & 3 || rp->rpr_msgout.dma_size & 3) { - panic("%s: rsapriv: invalid msgout %08x(0x%x)", + panic("%s: rsapriv: invalid msgout %08x(0x%lx)", sc->sc_dv.dv_xname, rp->rpr_msgout.dma_paddr, rp->rpr_msgout.dma_size); } diff --git a/sys/dev/pcmcia/if_ep_pcmcia.c b/sys/dev/pcmcia/if_ep_pcmcia.c index a4136762d3c..dcc55a0dbf8 100644 --- a/sys/dev/pcmcia/if_ep_pcmcia.c +++ b/sys/dev/pcmcia/if_ep_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ep_pcmcia.c,v 1.42 2013/08/07 01:06:39 bluhm Exp $ */ +/* $OpenBSD: if_ep_pcmcia.c,v 1.43 2014/05/04 20:09:15 sf Exp $ */ /* $NetBSD: if_ep_pcmcia.c,v 1.16 1998/08/17 23:20:40 thorpej Exp $ */ /*- @@ -331,7 +331,7 @@ ep_pcmcia_attach(parent, self, aux) return; } - printf(" port 0x%lx/%d", psc->sc_pcioh.addr, psc->sc_pcioh.size); + printf(" port 0x%lx/%ld", psc->sc_pcioh.addr, psc->sc_pcioh.size); switch (pa->product) { case PCMCIA_PRODUCT_3COM_3C562: diff --git a/sys/dev/pcmcia/if_malo.c b/sys/dev/pcmcia/if_malo.c index 8d8afb6f555..2f9808994be 100644 --- a/sys/dev/pcmcia/if_malo.c +++ b/sys/dev/pcmcia/if_malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_malo.c,v 1.76 2013/12/06 21:03:04 deraadt Exp $ */ +/* $OpenBSD: if_malo.c,v 1.77 2014/05/04 20:09:15 sf Exp $ */ /* * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org> @@ -193,7 +193,7 @@ malo_pcmcia_attach(struct device *parent, struct device *self, void *aux) sc->sc_iot = psc->sc_pcioh.iot; sc->sc_ioh = psc->sc_pcioh.ioh; - printf(" port 0x%x/%d", psc->sc_pcioh.addr, psc->sc_pcioh.size); + printf(" port 0x%lx/%ld", psc->sc_pcioh.addr, psc->sc_pcioh.size); /* establish interrupt */ psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, cmalo_intr, sc, |