summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2014-05-17 12:40:25 +0000
committerratchov <ratchov@openbsd.org>2014-05-17 12:40:25 +0000
commit6f4192156379e4e8119f9ea5f43254623656708f (patch)
tree2bc4204844f9c6012bcecf44e02a4a677530f770
parentunbreak build with AUDIO_DEBUG: use %lx for bus_addr_t (diff)
downloadwireguard-openbsd-6f4192156379e4e8119f9ea5f43254623656708f.tar.xz
wireguard-openbsd-6f4192156379e4e8119f9ea5f43254623656708f.zip
fix format mistakes visible if AUICH_DEBUG is defined
-rw-r--r--sys/dev/pci/auich.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c
index 30cad48c7e5..80d59fbfa1c 100644
--- a/sys/dev/pci/auich.c
+++ b/sys/dev/pci/auich.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auich.c,v 1.99 2013/12/06 21:03:03 deraadt Exp $ */
+/* $OpenBSD: auich.c,v 1.100 2014/05/17 12:40:25 ratchov Exp $ */
/*
* Copyright (c) 2000,2001 Michael Shalayeff
@@ -1297,7 +1297,7 @@ auich_allocm(void *v, int direction, size_t size, int pool, int flags)
/* can only use 1 segment */
if (size > AUICH_DMASEG_MAX) {
DPRINTF(AUICH_DEBUG_DMA,
- ("%s: requested buffer size too large: %d", \
+ ("%s: requested buffer size too large: %zd", \
sc->sc_dev.dv_xname, size));
return NULL;
}
@@ -1427,7 +1427,7 @@ auich_intr(void *v)
#ifdef AUICH_DEBUG
if (sts & AUICH_FIFOE) {
- printf("%s: in fifo overrun civ=%u ctrl=0x%x sts=%b\n",
+ printf("%s: in fifo overrun # %u civ=%u ctrl=0x%x sts=%b\n",
sc->sc_dev.dv_xname, sc->pcmi_fifoe++,
bus_space_read_1(sc->iot, sc->aud_ioh,
AUICH_PCMI + AUICH_CIV),
@@ -1457,7 +1457,7 @@ auich_intr(void *v)
("auich_intr: ists=%b\n", sts, AUICH_ISTS_BITS));
#ifdef AUICH_DEBUG
if (sts & AUICH_FIFOE) {
- printf("%s: in fifo overrun # %u civ=%u ctrl=0x%x sts=%b\n",
+ printf("%s: in fifo overrun civ=%u ctrl=0x%x sts=%b\n",
sc->sc_dev.dv_xname,
bus_space_read_1(sc->iot, sc->aud_ioh,
AUICH_MICI + AUICH_CIV),
@@ -1580,7 +1580,7 @@ auich_trigger_output(void *v, void *start, void *end, int blksize,
sts = bus_space_read_2(sc->iot, sc->aud_ioh,
AUICH_PCMO + sc->sc_sts_reg);
DPRINTF(AUICH_DEBUG_DMA,
- ("auich_trigger_output(%x, %x, %d, %p, %p, %p) sts=%b\n",
+ ("auich_trigger_output(%p, %p, %d, %p, %p, %p) sts=%b\n",
start, end, blksize, intr, arg, param, sts, AUICH_ISTS_BITS));
#endif
@@ -1627,7 +1627,7 @@ auich_trigger_input(v, start, end, blksize, intr, arg, param)
#ifdef AUICH_DEBUG
DPRINTF(AUICH_DEBUG_DMA,
- ("auich_trigger_input(%x, %x, %d, %p, %p, %p) sts=%b\n",
+ ("auich_trigger_input(%p, %p, %d, %p, %p, %p) sts=%b\n",
start, end, blksize, intr, arg, param,
bus_space_read_2(sc->iot, sc->aud_ioh,
AUICH_PCMI + sc->sc_sts_reg),