summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-06-20 05:11:37 +0000
committerimp <imp@FreeBSD.org>2007-06-20 05:11:37 +0000
commit84d4dbb618d1bcabae2a9014accb0d7f5fe80a39 (patch)
treef18d982a21da66b23b74208f5783342cdc0d587c /sys/dev/usb
parenteedfe26628c2303d44409d4310da6ec1aa8b6c08 (diff)
downloadFreeBSD-src-84d4dbb618d1bcabae2a9014accb0d7f5fe80a39.zip
FreeBSD-src-84d4dbb618d1bcabae2a9014accb0d7f5fe80a39.tar.gz
s/logprintf/printf/g
Approved by: re@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ehci.c4
-rw-r--r--sys/dev/usb/ehci_pci.c2
-rw-r--r--sys/dev/usb/hid.c4
-rw-r--r--sys/dev/usb/if_rue.c2
-rw-r--r--sys/dev/usb/if_rum.c4
-rw-r--r--sys/dev/usb/if_udav.c4
-rw-r--r--sys/dev/usb/if_ural.c4
-rw-r--r--sys/dev/usb/ohci.c4
-rw-r--r--sys/dev/usb/uark.c2
-rw-r--r--sys/dev/usb/ubsa.c2
-rw-r--r--sys/dev/usb/ubser.c4
-rw-r--r--sys/dev/usb/ucom.c4
-rw-r--r--sys/dev/usb/udbp.c4
-rw-r--r--sys/dev/usb/ufm.c4
-rw-r--r--sys/dev/usb/uftdi.c4
-rw-r--r--sys/dev/usb/uhid.c4
-rw-r--r--sys/dev/usb/ukbd.c4
-rw-r--r--sys/dev/usb/ulpt.c4
-rw-r--r--sys/dev/usb/umass.c2
-rw-r--r--sys/dev/usb/umodem.c2
-rw-r--r--sys/dev/usb/ums.c4
-rw-r--r--sys/dev/usb/uplcom.c2
-rw-r--r--sys/dev/usb/urio.c4
-rw-r--r--sys/dev/usb/usb.c4
-rw-r--r--sys/dev/usb/usb_mem.c4
-rw-r--r--sys/dev/usb/usb_port.h4
-rw-r--r--sys/dev/usb/usb_quirks.c2
-rw-r--r--sys/dev/usb/usb_subr.c4
-rw-r--r--sys/dev/usb/usbdi.c4
-rw-r--r--sys/dev/usb/usbdi_util.c4
-rw-r--r--sys/dev/usb/uscanner.c4
-rw-r--r--sys/dev/usb/uvscom.c2
32 files changed, 55 insertions, 55 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index 89db953..2ce95e6 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -92,8 +92,8 @@ __FBSDID("$FreeBSD$");
#ifdef USB_DEBUG
#define EHCI_DEBUG USB_DEBUG
-#define DPRINTF(x) do { if (ehcidebug) logprintf x; } while (0)
-#define DPRINTFN(n,x) do { if (ehcidebug>(n)) logprintf x; } while (0)
+#define DPRINTF(x) do { if (ehcidebug) printf x; } while (0)
+#define DPRINTFN(n,x) do { if (ehcidebug>(n)) printf x; } while (0)
int ehcidebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, ehci, CTLFLAG_RW, 0, "USB ehci");
SYSCTL_INT(_hw_usb_ehci, OID_AUTO, debug, CTLFLAG_RW,
diff --git a/sys/dev/usb/ehci_pci.c b/sys/dev/usb/ehci_pci.c
index 5805447..d9ba93f 100644
--- a/sys/dev/usb/ehci_pci.c
+++ b/sys/dev/usb/ehci_pci.c
@@ -147,7 +147,7 @@ static const char *ehci_device_generic = "EHCI (generic) USB 2.0 controller";
#ifdef USB_DEBUG
#define EHCI_DEBUG USB_DEBUG
-#define DPRINTF(x) do { if (ehcidebug) logprintf x; } while (0)
+#define DPRINTF(x) do { if (ehcidebug) printf x; } while (0)
extern int ehcidebug;
#else
#define DPRINTF(x)
diff --git a/sys/dev/usb/hid.c b/sys/dev/usb/hid.c
index dc8f8e1..6a9589e 100644
--- a/sys/dev/usb/hid.c
+++ b/sys/dev/usb/hid.c
@@ -50,8 +50,8 @@ __FBSDID("$FreeBSD$");
#include <dev/usb/hid.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) if (usbdebug) logprintf x
-#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x
+#define DPRINTF(x) if (usbdebug) printf x
+#define DPRINTFN(n,x) if (usbdebug>(n)) printf x
extern int usbdebug;
#else
#define DPRINTF(x)
diff --git a/sys/dev/usb/if_rue.c b/sys/dev/usb/if_rue.c
index 8ecb4aa..6f4b267 100644
--- a/sys/dev/usb/if_rue.c
+++ b/sys/dev/usb/if_rue.c
@@ -110,7 +110,7 @@ SYSCTL_INT(_hw_usb_rue, OID_AUTO, debug, CTLFLAG_RW,
#define DPRINTFN(n, x) do { \
if (ruedebug > (n)) \
- logprintf x; \
+ printf x; \
} while (0);
#else
#define DPRINTFN(n, x)
diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c
index a17221b..bef55ff 100644
--- a/sys/dev/usb/if_rum.c
+++ b/sys/dev/usb/if_rum.c
@@ -64,8 +64,8 @@ __FBSDID("$FreeBSD$");
#include <dev/usb/rt2573_ucode.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) do { if (rumdebug > 0) logprintf x; } while (0)
-#define DPRINTFN(n, x) do { if (rumdebug >= (n)) logprintf x; } while (0)
+#define DPRINTF(x) do { if (rumdebug > 0) printf x; } while (0)
+#define DPRINTFN(n, x) do { if (rumdebug >= (n)) printf x; } while (0)
int rumdebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, rum, CTLFLAG_RW, 0, "USB rum");
SYSCTL_INT(_hw_usb_rum, OID_AUTO, debug, CTLFLAG_RW, &rumdebug, 0,
diff --git a/sys/dev/usb/if_udav.c b/sys/dev/usb/if_udav.c
index 2b3008d..f5e96b0 100644
--- a/sys/dev/usb/if_udav.c
+++ b/sys/dev/usb/if_udav.c
@@ -235,8 +235,8 @@ DRIVER_MODULE(miibus, udav, miibus_driver, miibus_devclass, 0, 0);
/* Macros */
#ifdef UDAV_DEBUG
-#define DPRINTF(x) if (udavdebug) logprintf x
-#define DPRINTFN(n,x) if (udavdebug >= (n)) logprintf x
+#define DPRINTF(x) if (udavdebug) printf x
+#define DPRINTFN(n,x) if (udavdebug >= (n)) printf x
int udavdebug = 0;
#else
#define DPRINTF(x)
diff --git a/sys/dev/usb/if_ural.c b/sys/dev/usb/if_ural.c
index 1ea738d..78a91df 100644
--- a/sys/dev/usb/if_ural.c
+++ b/sys/dev/usb/if_ural.c
@@ -63,8 +63,8 @@ __FBSDID("$FreeBSD$");
#include <dev/usb/if_uralvar.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) do { if (uraldebug > 0) logprintf x; } while (0)
-#define DPRINTFN(n, x) do { if (uraldebug >= (n)) logprintf x; } while (0)
+#define DPRINTF(x) do { if (uraldebug > 0) printf x; } while (0)
+#define DPRINTFN(n, x) do { if (uraldebug >= (n)) printf x; } while (0)
int uraldebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, ural, CTLFLAG_RW, 0, "USB ural");
SYSCTL_INT(_hw_usb_ural, OID_AUTO, debug, CTLFLAG_RW, &uraldebug, 0,
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index 40836e7..736bdf8 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -88,8 +88,8 @@ __FBSDID("$FreeBSD$");
#define delay(d) DELAY(d)
#ifdef USB_DEBUG
-#define DPRINTF(x) if (ohcidebug) logprintf x
-#define DPRINTFN(n,x) if (ohcidebug>(n)) logprintf x
+#define DPRINTF(x) if (ohcidebug) printf x
+#define DPRINTFN(n,x) if (ohcidebug>(n)) printf x
int ohcidebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, ohci, CTLFLAG_RW, 0, "USB ohci");
SYSCTL_INT(_hw_usb_ohci, OID_AUTO, debug, CTLFLAG_RW,
diff --git a/sys/dev/usb/uark.c b/sys/dev/usb/uark.c
index dd3aa7d..0b6a448 100644
--- a/sys/dev/usb/uark.c
+++ b/sys/dev/usb/uark.c
@@ -42,7 +42,7 @@
#ifdef UARK_DEBUG
#define DPRINTFN(n, x) do { \
if (uarkdebug > (n)) \
- logprintf x; \
+ printf x; \
} while (0)
int uarkebug = 0;
#else
diff --git a/sys/dev/usb/ubsa.c b/sys/dev/usb/ubsa.c
index ce31502..d8638ab 100644
--- a/sys/dev/usb/ubsa.c
+++ b/sys/dev/usb/ubsa.c
@@ -97,7 +97,7 @@ SYSCTL_INT(_hw_usb_ubsa, OID_AUTO, debug, CTLFLAG_RW,
#define DPRINTFN(n, x) do { \
if (ubsadebug > (n)) \
- logprintf x; \
+ printf x; \
} while (0)
#else
#define DPRINTFN(n, x)
diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c
index 72ee4ff..b113c60 100644
--- a/sys/dev/usb/ubser.c
+++ b/sys/dev/usb/ubser.c
@@ -112,12 +112,12 @@ SYSCTL_INT(_hw_usb_ubser, OID_AUTO, debug, CTLFLAG_RW,
&ubserdebug, 0, "ubser debug level");
#define DPRINTF(x) do { \
if (ubserdebug) \
- logprintf x; \
+ printf x; \
} while (0)
#define DPRINTFN(n, x) do { \
if (ubserdebug > (n)) \
- logprintf x; \
+ printf x; \
} while (0)
#else
#define DPRINTF(x)
diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c
index 076e661..f80aa04 100644
--- a/sys/dev/usb/ucom.c
+++ b/sys/dev/usb/ucom.c
@@ -101,12 +101,12 @@ SYSCTL_INT(_hw_usb_ucom, OID_AUTO, debug, CTLFLAG_RW,
&ucomdebug, 0, "ucom debug level");
#define DPRINTF(x) do { \
if (ucomdebug) \
- logprintf x; \
+ printf x; \
} while (0)
#define DPRINTFN(n, x) do { \
if (ucomdebug > (n)) \
- logprintf x; \
+ printf x; \
} while (0)
#else
#define DPRINTF(x)
diff --git a/sys/dev/usb/udbp.c b/sys/dev/usb/udbp.c
index 6bd2d99..5726e7b 100644
--- a/sys/dev/usb/udbp.c
+++ b/sys/dev/usb/udbp.c
@@ -104,8 +104,8 @@ __FBSDID("$FreeBSD$");
#include <netgraph/netgraph.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) if (udbpdebug) logprintf x
-#define DPRINTFN(n,x) if (udbpdebug>(n)) logprintf x
+#define DPRINTF(x) if (udbpdebug) printf x
+#define DPRINTFN(n,x) if (udbpdebug>(n)) printf x
int udbpdebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, udbp, CTLFLAG_RW, 0, "USB udbp");
SYSCTL_INT(_hw_usb_udbp, OID_AUTO, debug, CTLFLAG_RW,
diff --git a/sys/dev/usb/ufm.c b/sys/dev/usb/ufm.c
index a1875dc..f5bd932 100644
--- a/sys/dev/usb/ufm.c
+++ b/sys/dev/usb/ufm.c
@@ -56,8 +56,8 @@ __FBSDID("$FreeBSD$");
#include <dev/usb/dsbr100io.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) if (ufmdebug) logprintf x
-#define DPRINTFN(n,x) if (ufmdebug>(n)) logprintf x
+#define DPRINTF(x) if (ufmdebug) printf x
+#define DPRINTFN(n,x) if (ufmdebug>(n)) printf x
int ufmdebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, ufm, CTLFLAG_RW, 0, "USB ufm");
SYSCTL_INT(_hw_usb_ufm, OID_AUTO, debug, CTLFLAG_RW,
diff --git a/sys/dev/usb/uftdi.c b/sys/dev/usb/uftdi.c
index 9ddfdf6..4ff7342 100644
--- a/sys/dev/usb/uftdi.c
+++ b/sys/dev/usb/uftdi.c
@@ -79,12 +79,12 @@ SYSCTL_INT(_hw_usb_uftdi, OID_AUTO, debug, CTLFLAG_RW,
&uftdidebug, 0, "uftdi debug level");
#define DPRINTF(x) do { \
if (uftdidebug) \
- logprintf x; \
+ printf x; \
} while (0)
#define DPRINTFN(n, x) do { \
if (uftdidebug > (n)) \
- logprintf x; \
+ printf x; \
} while (0)
#else
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index 0f3f6ae..0510724 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -90,8 +90,8 @@ __FBSDID("$FreeBSD$");
#include <dev/usb/usb_quirks.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) if (uhiddebug) logprintf x
-#define DPRINTFN(n,x) if (uhiddebug>(n)) logprintf x
+#define DPRINTF(x) if (uhiddebug) printf x
+#define DPRINTFN(n,x) if (uhiddebug>(n)) printf x
int uhiddebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, uhid, CTLFLAG_RW, 0, "USB uhid");
SYSCTL_INT(_hw_usb_uhid, OID_AUTO, debug, CTLFLAG_RW,
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c
index 7473fb8..daeb25a 100644
--- a/sys/dev/usb/ukbd.c
+++ b/sys/dev/usb/ukbd.c
@@ -77,8 +77,8 @@ __FBSDID("$FreeBSD$");
#define delay(d) DELAY(d)
#ifdef USB_DEBUG
-#define DPRINTF(x) if (ukbddebug) logprintf x
-#define DPRINTFN(n,x) if (ukbddebug>(n)) logprintf x
+#define DPRINTF(x) if (ukbddebug) printf x
+#define DPRINTFN(n,x) if (ukbddebug>(n)) printf x
int ukbddebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, ukbd, CTLFLAG_RW, 0, "USB ukbd");
SYSCTL_INT(_hw_usb_ukbd, OID_AUTO, debug, CTLFLAG_RW,
diff --git a/sys/dev/usb/ulpt.c b/sys/dev/usb/ulpt.c
index 0d5ef51..321da2e 100644
--- a/sys/dev/usb/ulpt.c
+++ b/sys/dev/usb/ulpt.c
@@ -75,8 +75,8 @@ __FBSDID("$FreeBSD$");
#define ULPT_READ_TIMO 10
#ifdef USB_DEBUG
-#define DPRINTF(x) if (ulptdebug) logprintf x
-#define DPRINTFN(n,x) if (ulptdebug>(n)) logprintf x
+#define DPRINTF(x) if (ulptdebug) printf x
+#define DPRINTFN(n,x) if (ulptdebug>(n)) printf x
int ulptdebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, ulpt, CTLFLAG_RW, 0, "USB ulpt");
SYSCTL_INT(_hw_usb_ulpt, OID_AUTO, debug, CTLFLAG_RW,
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c
index 1ec4d0d..b928349 100644
--- a/sys/dev/usb/umass.c
+++ b/sys/dev/usb/umass.c
@@ -132,7 +132,7 @@
#ifdef USB_DEBUG
#define DIF(m, x) if (umassdebug & (m)) do { x ; } while (0)
-#define DPRINTF(m, x) if (umassdebug & (m)) logprintf x
+#define DPRINTF(m, x) if (umassdebug & (m)) printf x
#define UDMASS_GEN 0x00010000 /* general */
#define UDMASS_SCSI 0x00020000 /* scsi */
#define UDMASS_UFI 0x00040000 /* ufi command set */
diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c
index f3e050d..50a0f62 100644
--- a/sys/dev/usb/umodem.c
+++ b/sys/dev/usb/umodem.c
@@ -112,7 +112,7 @@ int umodemdebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, umodem, CTLFLAG_RW, 0, "USB umodem");
SYSCTL_INT(_hw_usb_umodem, OID_AUTO, debug, CTLFLAG_RW,
&umodemdebug, 0, "umodem debug level");
-#define DPRINTFN(n, x) if (umodemdebug > (n)) logprintf x
+#define DPRINTFN(n, x) if (umodemdebug > (n)) printf x
#else
#define DPRINTFN(n, x)
#endif
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c
index 51260d2..c0d2d98 100644
--- a/sys/dev/usb/ums.c
+++ b/sys/dev/usb/ums.c
@@ -71,8 +71,8 @@ __FBSDID("$FreeBSD$");
#include <sys/mouse.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) if (umsdebug) logprintf x
-#define DPRINTFN(n,x) if (umsdebug>(n)) logprintf x
+#define DPRINTF(x) if (umsdebug) printf x
+#define DPRINTFN(n,x) if (umsdebug>(n)) printf x
int umsdebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, ums, CTLFLAG_RW, 0, "USB ums");
SYSCTL_INT(_hw_usb_ums, OID_AUTO, debug, CTLFLAG_RW,
diff --git a/sys/dev/usb/uplcom.c b/sys/dev/usb/uplcom.c
index 5f115b2..a27bd17 100644
--- a/sys/dev/usb/uplcom.c
+++ b/sys/dev/usb/uplcom.c
@@ -126,7 +126,7 @@ SYSCTL_INT(_hw_usb_uplcom, OID_AUTO, debug, CTLFLAG_RW,
#define DPRINTFN(n, x) do { \
if (uplcomdebug > (n)) \
- logprintf x; \
+ printf x; \
} while (0)
#else
#define DPRINTFN(n, x)
diff --git a/sys/dev/usb/urio.c b/sys/dev/usb/urio.c
index d10dec1..c8f82cf 100644
--- a/sys/dev/usb/urio.c
+++ b/sys/dev/usb/urio.c
@@ -71,8 +71,8 @@ __FBSDID("$FreeBSD$");
#include <dev/usb/rio500_usb.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) if (uriodebug) logprintf x
-#define DPRINTFN(n,x) if (uriodebug>(n)) logprintf x
+#define DPRINTF(x) if (uriodebug) printf x
+#define DPRINTFN(n,x) if (uriodebug>(n)) printf x
int uriodebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, urio, CTLFLAG_RW, 0, "USB urio");
SYSCTL_INT(_hw_usb_urio, OID_AUTO, debug, CTLFLAG_RW,
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index ee4aa0d..6c2da4a 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -98,8 +98,8 @@ MALLOC_DEFINE(M_USBHC, "USBHC", "USB host controller");
SYSCTL_NODE(_hw, OID_AUTO, usb, CTLFLAG_RW, 0, "USB debugging");
#ifdef USB_DEBUG
-#define DPRINTF(x) if (usbdebug) logprintf x
-#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x
+#define DPRINTF(x) if (usbdebug) printf x
+#define DPRINTFN(n,x) if (usbdebug>(n)) printf x
int usbdebug = 0;
SYSCTL_INT(_hw_usb, OID_AUTO, debug, CTLFLAG_RW,
&usbdebug, 0, "usb debug level");
diff --git a/sys/dev/usb/usb_mem.c b/sys/dev/usb/usb_mem.c
index f7db6b8..bbb0bf6 100644
--- a/sys/dev/usb/usb_mem.c
+++ b/sys/dev/usb/usb_mem.c
@@ -70,8 +70,8 @@ __FBSDID("$FreeBSD$");
#include <dev/usb/usb_mem.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) if (usbdebug) logprintf x
-#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x
+#define DPRINTF(x) if (usbdebug) printf x
+#define DPRINTFN(n,x) if (usbdebug>(n)) printf x
extern int usbdebug;
#else
#define DPRINTF(x)
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h
index 460cf57..b9f9517 100644
--- a/sys/dev/usb/usb_port.h
+++ b/sys/dev/usb/usb_port.h
@@ -128,8 +128,8 @@ __CONCAT(dname,_detach)(device_t self)
#include <sys/syslog.h>
/*
-#define logprintf(args...) log(LOG_DEBUG, args)
+#define printf(args...) log(LOG_DEBUG, args)
*/
-#define logprintf printf
+#define printf printf
#endif /* _USB_PORT_H */
diff --git a/sys/dev/usb/usb_quirks.c b/sys/dev/usb/usb_quirks.c
index a3a1e6f..5a21c15 100644
--- a/sys/dev/usb/usb_quirks.c
+++ b/sys/dev/usb/usb_quirks.c
@@ -154,7 +154,7 @@ usbd_find_quirk(usb_device_descriptor_t *d)
}
#ifdef USB_DEBUG
if (usbdebug && t->quirks.uq_flags)
- logprintf("usbd_find_quirk 0x%04x/0x%04x/%x: %d\n",
+ printf("usbd_find_quirk 0x%04x/0x%04x/%x: %d\n",
UGETW(d->idVendor), UGETW(d->idProduct),
UGETW(d->bcdDevice), t->quirks.uq_flags);
#endif
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index dc41818..4822aa0 100644
--- a/sys/dev/usb/usb_subr.c
+++ b/sys/dev/usb/usb_subr.c
@@ -74,8 +74,8 @@ __FBSDID("$FreeBSD$");
#define delay(d) DELAY(d)
#ifdef USB_DEBUG
-#define DPRINTF(x) if (usbdebug) logprintf x
-#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x
+#define DPRINTF(x) if (usbdebug) printf x
+#define DPRINTFN(n,x) if (usbdebug>(n)) printf x
extern int usbdebug;
#else
#define DPRINTF(x)
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index 892192c..480658d 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -64,8 +64,8 @@ __FBSDID("$FreeBSD$");
#define delay(d) DELAY(d)
#ifdef USB_DEBUG
-#define DPRINTF(x) if (usbdebug) logprintf x
-#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x
+#define DPRINTF(x) if (usbdebug) printf x
+#define DPRINTFN(n,x) if (usbdebug>(n)) printf x
extern int usbdebug;
#else
#define DPRINTF(x)
diff --git a/sys/dev/usb/usbdi_util.c b/sys/dev/usb/usbdi_util.c
index b39bc9c..78ea571 100644
--- a/sys/dev/usb/usbdi_util.c
+++ b/sys/dev/usb/usbdi_util.c
@@ -54,8 +54,8 @@ __FBSDID("$FreeBSD$");
#include <dev/usb/usbdi_util.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) if (usbdebug) logprintf x
-#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x
+#define DPRINTF(x) if (usbdebug) printf x
+#define DPRINTFN(n,x) if (usbdebug>(n)) printf x
extern int usbdebug;
#else
#define DPRINTF(x)
diff --git a/sys/dev/usb/uscanner.c b/sys/dev/usb/uscanner.c
index 42208ac..00462e0 100644
--- a/sys/dev/usb/uscanner.c
+++ b/sys/dev/usb/uscanner.c
@@ -72,8 +72,8 @@ __FBSDID("$FreeBSD$");
#include "usbdevs.h"
#ifdef USB_DEBUG
-#define DPRINTF(x) if (uscannerdebug) logprintf x
-#define DPRINTFN(n,x) if (uscannerdebug>(n)) logprintf x
+#define DPRINTF(x) if (uscannerdebug) printf x
+#define DPRINTFN(n,x) if (uscannerdebug>(n)) printf x
int uscannerdebug = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, uscanner, CTLFLAG_RW, 0, "USB uscanner");
SYSCTL_INT(_hw_usb_uscanner, OID_AUTO, debug, CTLFLAG_RW,
diff --git a/sys/dev/usb/uvscom.c b/sys/dev/usb/uvscom.c
index c6d1632..be35583 100644
--- a/sys/dev/usb/uvscom.c
+++ b/sys/dev/usb/uvscom.c
@@ -74,7 +74,7 @@ SYSCTL_INT(_hw_usb_uvscom, OID_AUTO, debug, CTLFLAG_RW,
#define DPRINTFN(n, x) do { \
if (uvscomdebug > (n)) \
- logprintf x; \
+ printf x; \
} while (0)
#else
#define DPRINTFN(n, x)
OpenPOWER on IntegriCloud