Skip to content

Commit 341b3cb

Browse files
committed
Debug printf tidy up, KNF comma,space nits.
1 parent a81f5e7 commit 341b3cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sys/dev/usb/ugen.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 $ */
22

33
/*
44
* Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
3737

3838

3939
#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 $");
4141

4242
#ifdef _KERNEL_OPT
4343
#include "opt_compat_netbsd.h"
@@ -529,7 +529,7 @@ ugen_set_config(struct ugen_softc *sc, int configno, int chkopen)
529529
if (err)
530530
goto out;
531531
for (endptno = 0; endptno < nendpt; endptno++) {
532-
ed = usbd_interface2endpoint_descriptor(iface,endptno);
532+
ed = usbd_interface2endpoint_descriptor(iface, endptno);
533533
KASSERT(ed != NULL);
534534
endpt = ed->bEndpointAddress;
535535
dir = UE_GET_DIR(endpt) == UE_DIR_IN ? IN : OUT;
@@ -1346,8 +1346,8 @@ ugenintr(struct usbd_xfer *xfer, void *addr, usbd_status status)
13461346
usbd_get_xfer_status(xfer, NULL, NULL, &count, NULL);
13471347
ibuf = sce->ibuf;
13481348

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);
13511351
DPRINTFN(5, " data = %02x %02x %02x",
13521352
ibuf[0], ibuf[1], ibuf[2], 0);
13531353

@@ -1595,7 +1595,7 @@ ugen_set_interface(struct ugen_softc *sc, int ifaceidx, int altno)
15951595
ugen_clear_endpoints(sc);
15961596

15971597
for (endptno = 0; endptno < nendpt; endptno++) {
1598-
ed = usbd_interface2endpoint_descriptor(iface,endptno);
1598+
ed = usbd_interface2endpoint_descriptor(iface, endptno);
15991599
KASSERT(ed != NULL);
16001600
endpt = ed->bEndpointAddress;
16011601
dir = UE_GET_DIR(endpt) == UE_DIR_IN ? IN : OUT;

0 commit comments

Comments
 (0)