summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2018-04-27 10:16:27 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2018-04-27 10:16:27 +0000
commitef5f442c04aa45748e8c4f5c43a2a4d79886328e (patch)
treedc954bf3a3e383d45a397eb752fb6d8bd2fee7d9 /sys/dev/usb
parent0ac3ea7554a97a8f9ef72f10efc25e2f8f917ec8 (diff)
Print index as unsigned.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/xhci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c
index 34996e4be3f..8a9cd85ef63 100644
--- a/sys/dev/usb/xhci.c
+++ b/sys/dev/usb/xhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xhci.c,v 1.80 2018/04/27 10:11:28 mpi Exp $ */
+/* $OpenBSD: xhci.c,v 1.81 2018/04/27 10:16:26 mpi Exp $ */
/*
* Copyright (c) 2014-2015 Martin Pieuchot
@@ -719,11 +719,11 @@ xhci_event_xfer(struct xhci_softc *sc, uint64_t paddr, uint32_t status,
switch (code) {
case XHCI_CODE_RING_UNDERRUN:
- DPRINTFN(4, ("%s: slot %d underrun wih %zu TRB\n", DEVNAME(sc),
+ DPRINTFN(4, ("%s: slot %u underrun wih %zu TRB\n", DEVNAME(sc),
slot, xp->ring.ntrb - xp->free_trbs));
return;
case XHCI_CODE_RING_OVERRUN:
- DPRINTFN(4, ("%s: slot %d overrun wih %zu TRB\n", DEVNAME(sc),
+ DPRINTFN(4, ("%s: slot %u overrun wih %zu TRB\n", DEVNAME(sc),
slot, xp->ring.ntrb - xp->free_trbs));
return;
default:
@@ -732,7 +732,7 @@ xhci_event_xfer(struct xhci_softc *sc, uint64_t paddr, uint32_t status,
trb_idx = (paddr - xp->ring.dma.paddr) / sizeof(struct xhci_trb);
if (trb_idx < 0 || trb_idx >= xp->ring.ntrb) {
- printf("%s: wrong trb index (%d) max is %zu\n", DEVNAME(sc),
+ printf("%s: wrong trb index (%u) max is %zu\n", DEVNAME(sc),
trb_idx, xp->ring.ntrb - 1);
return;
}
@@ -827,7 +827,7 @@ xhci_event_command(struct xhci_softc *sc, uint64_t paddr)
trb_idx = (paddr - sc->sc_cmd_ring.dma.paddr) / sizeof(*trb);
if (trb_idx < 0 || trb_idx >= sc->sc_cmd_ring.ntrb) {
- printf("%s: wrong trb index (%d) max is %zu\n", DEVNAME(sc),
+ printf("%s: wrong trb index (%u) max is %zu\n", DEVNAME(sc),
trb_idx, sc->sc_cmd_ring.ntrb - 1);
return;
}