summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbdi_util.c
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-04-11 20:50:33 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-04-11 20:50:33 +0000
commit94f89925adaf485e8c44ea5051caca0d5144810a (patch)
tree6daf4c342ff3a4576dd2894fcdc7c087ff58208f /sys/dev/usb/usbdi_util.c
parentd844f4559093125d735a5de22713c447117cf696 (diff)
downloadFreeBSD-src-94f89925adaf485e8c44ea5051caca0d5144810a.zip
FreeBSD-src-94f89925adaf485e8c44ea5051caca0d5144810a.tar.gz
1) Make debugging more selective.
2) create function usbd_errstr which turns a usbd_status into a sensible error message 3) Change the printf in DPRINTF to logprintf which is a define for log(KERN_DEBUG, x)
Diffstat (limited to 'sys/dev/usb/usbdi_util.c')
-rw-r--r--sys/dev/usb/usbdi_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usbdi_util.c b/sys/dev/usb/usbdi_util.c
index 70ad4eb..2b3e96e 100644
--- a/sys/dev/usb/usbdi_util.c
+++ b/sys/dev/usb/usbdi_util.c
@@ -54,8 +54,8 @@
#include <dev/usb/usbdi_util.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) if (usbdebug) printf x
-#define DPRINTFN(n,x) if (usbdebug>(n)) printf x
+#define DPRINTF(x) if (usbdebug) logprintf x
+#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x
extern int usbdebug;
#else
#define DPRINTF(x)
OpenPOWER on IntegriCloud