More printf format fixes.

This commit is contained in:
bouyer 2009-02-13 23:31:23 +00:00
parent 0cc72e51ac
commit 73920b4161
7 changed files with 30 additions and 26 deletions

@ -1,4 +1,4 @@
/* $NetBSD: ciss.c,v 1.14 2008/09/04 19:03:14 he Exp $ */
/* $NetBSD: ciss.c,v 1.15 2009/02/13 23:31:23 bouyer Exp $ */
/* $OpenBSD: ciss.c,v 1.14 2006/03/13 16:02:23 mickey Exp $ */
/*
@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ciss.c,v 1.14 2008/09/04 19:03:14 he Exp $");
__KERNEL_RCSID(0, "$NetBSD: ciss.c,v 1.15 2009/02/13 23:31:23 bouyer Exp $");
#include "bio.h"
@ -470,7 +470,8 @@ ciss_cmd(struct ciss_ccb *ccb, int flags, int wait)
sgd = dmap->dm_segs;
CISS_DPRINTF(CISS_D_DMA, ("data=%p/%u<0x%lx/%lu",
ccb->ccb_data, ccb->ccb_len, sgd->ds_addr, sgd->ds_len));
ccb->ccb_data, ccb->ccb_len, sgd->ds_addr,
(u_long)sgd->ds_len));
for (i = 0; i < dmap->dm_nsegs; sgd++, i++) {
cmd->sgl[i].addr_lo = htole32(sgd->ds_addr);
@ -480,7 +481,8 @@ ciss_cmd(struct ciss_ccb *ccb, int flags, int wait)
cmd->sgl[i].flags = htole32(0);
if (i) {
CISS_DPRINTF(CISS_D_DMA,
(",0x%lx/%lu", sgd->ds_addr, sgd->ds_len));
(",0x%lx/%lu", sgd->ds_addr,
(u_long)sgd->ds_len));
}
}

@ -1,4 +1,4 @@
/* $NetBSD: tcic2.c,v 1.30 2008/04/08 12:07:27 cegger Exp $ */
/* $NetBSD: tcic2.c,v 1.31 2009/02/13 23:31:23 bouyer Exp $ */
/*
* Copyright (c) 1998, 1999 Christoph Badura. All rights reserved.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tcic2.c,v 1.30 2008/04/08 12:07:27 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: tcic2.c,v 1.31 2009/02/13 23:31:23 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -753,7 +753,8 @@ tcic_chip_mem_alloc(pch, size, pcmhp)
i++;
sizepg = max(i, TCIC_MEM_SHIFT) - (TCIC_MEM_SHIFT-1);
DPRINTF(("tcic_chip_mem_alloc: size %ld sizepg %ld\n", size, sizepg));
DPRINTF(("tcic_chip_mem_alloc: size %ld sizepg %ld\n", (u_long)size,
(u_long)sizepg));
/* can't allocate that much anyway */
if (sizepg > TCIC_MEM_PAGES) /* XXX -chb */

@ -1,4 +1,4 @@
/* $NetBSD: if_ntwoc_isa.c,v 1.17 2008/04/08 20:08:50 cegger Exp $ */
/* $NetBSD: if_ntwoc_isa.c,v 1.18 2009/02/13 23:31:23 bouyer Exp $ */
/*
* Copyright (c) 1999 Christian E. Hopps
* Copyright (c) 1996 John Hay.
@ -29,11 +29,11 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ntwoc_isa.c,v 1.17 2008/04/08 20:08:50 cegger Exp $
* $Id: if_ntwoc_isa.c,v 1.18 2009/02/13 23:31:23 bouyer Exp $
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ntwoc_isa.c,v 1.17 2008/04/08 20:08:50 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ntwoc_isa.c,v 1.18 2009/02/13 23:31:23 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -465,7 +465,7 @@ ntwoc_isa_attach(struct device *parent, struct device *self, void *aux)
sca->scu_pagesize, 0, &sca->scu_memh))) {
aprint_error_dev(&sc->sc_dev, "can't map mem 0x%x sz %ld, %d\n",
ia->ia_iomem[0].ir_addr,
sca->scu_pagesize, rv);
(u_long)sca->scu_pagesize, rv);
return;
}
@ -548,7 +548,7 @@ ntwoc_isa_attach(struct device *parent, struct device *self, void *aux)
(sca->sc_numports > 1 ? "s" : ""));
#else
printf("%s: dpram %ldk %d serial port%s\n",
device_xname(&sc->sc_dev), pgs * (sca->scu_pagesize / 1024),
device_xname(&sc->sc_dev), (u_long)pgs * (sca->scu_pagesize / 1024),
sca->sc_numports, (sca->sc_numports > 1 ? "s" : ""));
#endif

@ -1,4 +1,4 @@
/* $NetBSD: isadma.c,v 1.58 2008/04/28 20:23:52 martin Exp $ */
/* $NetBSD: isadma.c,v 1.59 2009/02/13 23:31:23 bouyer Exp $ */
/*-
* Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: isadma.c,v 1.58 2008/04/28 20:23:52 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: isadma.c,v 1.59 2009/02/13 23:31:23 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -350,7 +350,7 @@ _isa_dmastart(ids, chan, addr, nbytes, p, flags, busdmaflags)
#ifdef ISADMA_DEBUG
printf("_isa_dmastart: drq %d, addr %p, nbytes 0x%lx, p %p, "
"flags 0x%x, dmaflags 0x%x\n",
chan, addr, nbytes, p, flags, busdmaflags);
chan, addr, (u_long)nbytes, p, flags, busdmaflags);
#endif
if (ISA_DMA_DRQ_ISFREE(ids, chan)) {

@ -1,4 +1,4 @@
/* $NetBSD: if_sk.c,v 1.56 2009/02/12 10:22:30 cegger Exp $ */
/* $NetBSD: if_sk.c,v 1.57 2009/02/13 23:31:23 bouyer Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -115,7 +115,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.56 2009/02/12 10:22:30 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.57 2009/02/13 23:31:23 bouyer Exp $");
#include "bpfilter.h"
#include "rnd.h"
@ -1580,7 +1580,8 @@ skc_attach(device_t parent, device_t self, void *aux)
return;
}
DPRINTFN(2, ("skc_attach: iobase=%lx, iosize=%lx\n", iobase, iosize));
DPRINTFN(2, ("skc_attach: iobase=%lx, iosize=%lx\n", iobase,
(u_long)iosize));
#endif
sc->sc_dmatag = pa->pa_dmat;

@ -1,4 +1,4 @@
/* $NetBSD: if_cnw.c,v 1.45 2008/11/07 00:20:12 dyoung Exp $ */
/* $NetBSD: if_cnw.c,v 1.46 2009/02/13 23:31:23 bouyer Exp $ */
/*-
* Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
@ -105,7 +105,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_cnw.c,v 1.45 2008/11/07 00:20:12 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_cnw.c,v 1.46 2009/02/13 23:31:23 bouyer Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@ -823,8 +823,8 @@ cnw_read(sc)
if (sc->sc_ethercom.ec_if.if_flags & IFF_DEBUG)
printf("%s: %d bytes @0x%x+0x%lx\n",
device_xname(&sc->sc_dev), bufbytes,
buffer, bufptr - buffer -
sc->sc_memoff);
buffer, (u_long)(bufptr - buffer -
sc->sc_memoff));
#endif
}
n = mbytes <= bufbytes ? mbytes : bufbytes;

@ -1,4 +1,4 @@
/* $NetBSD: ulpt.c,v 1.81 2008/05/24 16:40:58 cube Exp $ */
/* $NetBSD: ulpt.c,v 1.82 2009/02/13 23:31:23 bouyer Exp $ */
/* $FreeBSD: src/sys/dev/usb/ulpt.c,v 1.24 1999/11/17 22:33:44 n_hibma Exp $ */
/*
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.81 2008/05/24 16:40:58 cube Exp $");
__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.82 2009/02/13 23:31:23 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -760,8 +760,8 @@ ulpt_do_read(struct ulpt_softc *sc, struct uio *uio, int flags)
else
timeout = USBD_NO_TIMEOUT;
DPRINTFN(3, ("ulptread nonblocking=%d uio_reside=%d timeout=%d\n",
nonblocking, uio->uio_resid, timeout));
DPRINTFN(3, ("ulptread nonblocking=%d uio_reside=%ld timeout=%d\n",
nonblocking, (u_long)uio->uio_resid, timeout));
xfer = sc->sc_in_xfer;
bufp = sc->sc_in_buf;