printf() size_t with 'z' format modifier in debug code.

This commit is contained in:
jakllsch 2010-07-27 14:34:33 +00:00
parent 359dcd7f55
commit 5da0f05200
7 changed files with 22 additions and 22 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bha.c,v 1.72 2009/11/23 02:13:46 rmind Exp $ */
/* $NetBSD: bha.c,v 1.73 2010/07/27 14:34:34 jakllsch Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bha.c,v 1.72 2009/11/23 02:13:46 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: bha.c,v 1.73 2010/07/27 14:34:34 jakllsch Exp $");
#include "opt_ddb.h"
@ -937,7 +937,7 @@ bha_find(bus_space_tag_t iot, bus_space_handle_t ioh)
*/
if (i) {
#ifdef BHADEBUG
printf("bha_find: board returned %d instead of %d to %s\n",
printf("bha_find: board returned %d instead of %zu to %s\n",
i, sizeof(inquire.reply), "INQUIRE_EXTENDED");
#endif
return (0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: mb89352.c,v 1.51 2009/11/23 02:13:46 rmind Exp $ */
/* $NetBSD: mb89352.c,v 1.52 2010/07/27 14:34:34 jakllsch Exp $ */
/* NecBSD: mb89352.c,v 1.4 1998/03/14 07:31:20 kmatsuda Exp */
/*-
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mb89352.c,v 1.51 2009/11/23 02:13:46 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: mb89352.c,v 1.52 2010/07/27 14:34:34 jakllsch Exp $");
#ifdef DDB
#define integrate
@ -1954,7 +1954,7 @@ dophase:
case PH_DATAOUT:
if (sc->sc_state != SPC_CONNECTED)
break;
SPC_MISC(("dataout dleft=%d ", sc->sc_dleft));
SPC_MISC(("dataout dleft=%zu ", sc->sc_dleft));
if (sc->sc_dma_start != NULL &&
sc->sc_dleft > SPC_MIN_DMA_LEN) {
(*sc->sc_dma_start)(sc, sc->sc_dp, sc->sc_dleft, 0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: spkr.c,v 1.30 2009/03/18 10:22:40 cegger Exp $ */
/* $NetBSD: spkr.c,v 1.31 2010/07/27 14:34:34 jakllsch Exp $ */
/*
* Copyright (c) 1990 Eric S. Raymond (esr@snark.thyrsus.com)
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: spkr.c,v 1.30 2009/03/18 10:22:40 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: spkr.c,v 1.31 2010/07/27 14:34:34 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -447,7 +447,7 @@ spkrwrite(dev_t dev, struct uio *uio, int flags)
int n;
int error;
#ifdef SPKRDEBUG
printf("spkrwrite: entering with dev = %"PRIx64", count = %d\n",
printf("spkrwrite: entering with dev = %"PRIx64", count = %zu\n",
dev, uio->uio_resid);
#endif /* SPKRDEBUG */

View File

@ -1,4 +1,4 @@
/* $NetBSD: midi.c,v 1.71 2009/12/06 22:42:48 dyoung Exp $ */
/* $NetBSD: midi.c,v 1.72 2010/07/27 14:34:33 jakllsch Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.71 2009/12/06 22:42:48 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.72 2010/07/27 14:34:33 jakllsch Exp $");
#include "midi.h"
#include "sequencer.h"
@ -1512,7 +1512,7 @@ midiwrite(dev_t dev, struct uio *uio, int ioflag)
#ifdef MIDI_DEBUG
if (error)
printf("midi_write:(1) uiomove failed %d; "
"xfrcount=%d inp=%p\n",
"xfrcount=%zu inp=%p\n",
error, xfrcount, inp);
#endif
if ( error )

View File

@ -1,4 +1,4 @@
/* $NetBSD: trm.c,v 1.30 2008/05/14 13:29:29 tsutsui Exp $ */
/* $NetBSD: trm.c,v 1.31 2010/07/27 14:34:34 jakllsch Exp $ */
/*-
* Copyright (c) 2002 Izumi Tsutsui. All rights reserved.
*
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: trm.c,v 1.30 2008/05/14 13:29:29 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: trm.c,v 1.31 2010/07/27 14:34:34 jakllsch Exp $");
/* #define TRM_DEBUG */
#ifdef TRM_DEBUG
@ -574,7 +574,7 @@ trm_init(struct trm_softc *sc)
sc->sc_srb = malloc(sizeof(struct trm_srb) * TRM_MAX_SRB,
M_DEVBUF, M_NOWAIT|M_ZERO);
DPRINTF(("all SRB size=%x\n", sizeof(struct trm_srb) * TRM_MAX_SRB));
DPRINTF(("all SRB size=%zx\n", sizeof(struct trm_srb) * TRM_MAX_SRB));
if (sc->sc_srb == NULL) {
aprint_error(": can not allocate SRB\n");
return 1;

View File

@ -1,4 +1,4 @@
/* $NetBSD: twe.c,v 1.90 2009/05/12 08:23:01 cegger Exp $ */
/* $NetBSD: twe.c,v 1.91 2010/07/27 14:34:34 jakllsch Exp $ */
/*-
* Copyright (c) 2000, 2001, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.90 2009/05/12 08:23:01 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.91 2010/07/27 14:34:34 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1762,7 +1762,7 @@ tweioctl(dev_t dev, u_long cmd, void *data, int flag,
*/
if (tu->tu_size > TWE_SECTOR_SIZE) {
#ifdef TWE_DEBUG
printf("%s: TWEIO_COMMAND: tu_size = %d\n",
printf("%s: TWEIO_COMMAND: tu_size = %zu\n",
device_xname(&twe->sc_dv), tu->tu_size);
#endif
return EINVAL;

View File

@ -1,4 +1,4 @@
/* $NetBSD: rnd.c,v 1.77 2009/11/01 21:08:32 rmind Exp $ */
/* $NetBSD: rnd.c,v 1.78 2010/07/27 14:34:33 jakllsch Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.77 2009/11/01 21:08:32 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.78 2010/07/27 14:34:33 jakllsch Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@ -370,7 +370,7 @@ rndread(dev_t dev, struct uio *uio, int ioflag)
int ret;
DPRINTF(RND_DEBUG_READ,
("Random: Read of %d requested, flags 0x%08x\n",
("Random: Read of %zu requested, flags 0x%08x\n",
uio->uio_resid, ioflag));
if (uio->uio_resid == 0)
@ -459,7 +459,7 @@ rndwrite(dev_t dev, struct uio *uio, int ioflag)
int n, ret;
DPRINTF(RND_DEBUG_WRITE,
("Random: Write of %d requested\n", uio->uio_resid));
("Random: Write of %zu requested\n", uio->uio_resid));
if (uio->uio_resid == 0)
return (0);