summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/umodem.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/umodem.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/umodem.c')
-rw-r--r--sys/dev/usb/umodem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c
index 4ec326e..7a1b600 100644
--- a/sys/dev/usb/umodem.c
+++ b/sys/dev/usb/umodem.c
@@ -65,9 +65,9 @@
#include <dev/usb/usbdevs.h>
#include <dev/usb/usb_quirks.h>
-#ifdef USB_DEBUG
-#define DPRINTF(x) if (umodemdebug) printf x
-#define DPRINTFN(n,x) if (umodemdebug>(n)) printf x
+#ifdef UMODEM_DEBUG
+#define DPRINTF(x) if (umodemdebug) logprintf x
+#define DPRINTFN(n,x) if (umodemdebug>(n)) logprintf x
int umodemdebug = 1;
#else
#define DPRINTF(x)
OpenPOWER on IntegriCloud