|
1 | | -/* $NetBSD: ugen.c,v 1.173 2023/07/31 17:41:18 christos Exp $ */ |
| 1 | +/* $NetBSD: ugen.c,v 1.174 2023/10/10 10:58:03 simonb Exp $ */ |
2 | 2 |
|
3 | 3 | /* |
4 | 4 | * Copyright (c) 1998, 2004 The NetBSD Foundation, Inc. |
|
37 | 37 |
|
38 | 38 |
|
39 | 39 | #include <sys/cdefs.h> |
40 | | -__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.173 2023/07/31 17:41:18 christos Exp $"); |
| 40 | +__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.174 2023/10/10 10:58:03 simonb Exp $"); |
41 | 41 |
|
42 | 42 | #ifdef _KERNEL_OPT |
43 | 43 | #include "opt_compat_netbsd.h" |
@@ -529,7 +529,7 @@ ugen_set_config(struct ugen_softc *sc, int configno, int chkopen) |
529 | 529 | if (err) |
530 | 530 | goto out; |
531 | 531 | for (endptno = 0; endptno < nendpt; endptno++) { |
532 | | - ed = usbd_interface2endpoint_descriptor(iface,endptno); |
| 532 | + ed = usbd_interface2endpoint_descriptor(iface, endptno); |
533 | 533 | KASSERT(ed != NULL); |
534 | 534 | endpt = ed->bEndpointAddress; |
535 | 535 | dir = UE_GET_DIR(endpt) == UE_DIR_IN ? IN : OUT; |
@@ -1346,8 +1346,8 @@ ugenintr(struct usbd_xfer *xfer, void *addr, usbd_status status) |
1346 | 1346 | usbd_get_xfer_status(xfer, NULL, NULL, &count, NULL); |
1347 | 1347 | ibuf = sce->ibuf; |
1348 | 1348 |
|
1349 | | - DPRINTFN(5, "xfer=%#jx status=%d count=%d", |
1350 | | - (uintptr_t)xfer, status, count, 0); |
| 1349 | + DPRINTFN(5, "xfer=%p status=%d count=%d", |
| 1350 | + xfer, status, count, 0); |
1351 | 1351 | DPRINTFN(5, " data = %02x %02x %02x", |
1352 | 1352 | ibuf[0], ibuf[1], ibuf[2], 0); |
1353 | 1353 |
|
@@ -1595,7 +1595,7 @@ ugen_set_interface(struct ugen_softc *sc, int ifaceidx, int altno) |
1595 | 1595 | ugen_clear_endpoints(sc); |
1596 | 1596 |
|
1597 | 1597 | for (endptno = 0; endptno < nendpt; endptno++) { |
1598 | | - ed = usbd_interface2endpoint_descriptor(iface,endptno); |
| 1598 | + ed = usbd_interface2endpoint_descriptor(iface, endptno); |
1599 | 1599 | KASSERT(ed != NULL); |
1600 | 1600 | endpt = ed->bEndpointAddress; |
1601 | 1601 | dir = UE_GET_DIR(endpt) == UE_DIR_IN ? IN : OUT; |
|
0 commit comments