summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_ral.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2005-03-23 12:41:47 +0000
committerdlg <dlg@openbsd.org>2005-03-23 12:41:47 +0000
commit1d81812d363ef87b419d75a2a2eeef8ed27b6e18 (patch)
tree1593f4c6a423839eefef55e8ee80ed826d238cab /sys/dev/usb/if_ral.c
parentremove now osolete comment, from a mail exchange with (diff)
downloadwireguard-openbsd-1d81812d363ef87b419d75a2a2eeef8ed27b6e18.tar.xz
wireguard-openbsd-1d81812d363ef87b419d75a2a2eeef8ed27b6e18.zip
USB_DEBUG implies URAL_DEBUG.
ok damien@
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)