summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2007-05-05 12:10:58 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2007-05-05 12:10:58 +0000
commitc5ce552b85a96f80b9068a45dab696315079682b (patch)
tree0f88c646ffde61994ec0fd9ad755257e3e7f6f7c /sys/dev
parente5fea0cce4df41f7cd12b6bc013a75712e7f3ade (diff)
Properly ifdef debug bits to save a bit of space.
ok reyk@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/re.c8
-rw-r--r--sys/dev/pci/if_bce.c3
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c
index 4a211943f76..c48f7553ef0 100644
--- a/sys/dev/ic/re.c
+++ b/sys/dev/ic/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.69 2007/03/02 17:49:51 krw Exp $ */
+/* $OpenBSD: re.c,v 1.70 2007/05/05 12:10:57 jsg Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@@ -151,8 +151,12 @@
#include <dev/ic/rtl81x9reg.h>
#include <dev/ic/revar.h>
+#ifdef RE_DEBUG
int redebug = 0;
-#define DPRINTF(x) if (redebug) printf x
+#define DPRINTF(x) do { if (redebug) printf x; } while (0)
+#else
+#define DPRINTF(x)
+#endif
inline void re_set_bufaddr(struct rl_desc *, bus_addr_t);
diff --git a/sys/dev/pci/if_bce.c b/sys/dev/pci/if_bce.c
index 91a55676e8a..f954b1456b9 100644
--- a/sys/dev/pci/if_bce.c
+++ b/sys/dev/pci/if_bce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bce.c,v 1.18 2007/04/24 10:04:58 reyk Exp $ */
+/* $OpenBSD: if_bce.c,v 1.19 2007/05/05 12:10:57 jsg Exp $ */
/* $NetBSD: if_bce.c,v 1.3 2003/09/29 01:53:02 mrg Exp $ */
/*
@@ -186,7 +186,6 @@ int bce_mediachange(struct ifnet *);
void bce_mediastatus(struct ifnet *, struct ifmediareq *);
void bce_tick(void *);
-#define BCE_DEBUG
#ifdef BCE_DEBUG
#define DPRINTF(x) do { \
if (bcedebug) \