summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_ral.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/if_ral.c')
-rw-r--r--sys/dev/usb/if_ral.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c
index 6151880abe8..2a8ccc3471e 100644
--- a/sys/dev/usb/if_ral.c
+++ b/sys/dev/usb/if_ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ral.c,v 1.14 2005/03/19 10:18:49 damien Exp $ */
+/* $OpenBSD: if_ral.c,v 1.15 2005/03/23 12:41:47 dlg Exp $ */
/*-
* Copyright (c) 2005
@@ -67,9 +67,13 @@
#include <dev/usb/if_ralreg.h>
#include <dev/usb/if_ralvar.h>
+#ifdef USB_DEBUG
+#define RAL_DEBUG
+#endif
+
#ifdef RAL_DEBUG
-#define DPRINTF(x) if (ural_debug > 0) printf x
-#define DPRINTFN(n, x) if (ural_debug >= (n)) printf x
+#define DPRINTF(x) do { if (ural_debug) printf x; } while (0)
+#define DPRINTFN(n, x) do { if (ural_debug >= (n)) printf x; } while (0)
int ural_debug = 14;
#else
#define DPRINTF(x)