diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-05-05 12:10:58 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-05-05 12:10:58 +0000 |
commit | c5ce552b85a96f80b9068a45dab696315079682b (patch) | |
tree | 0f88c646ffde61994ec0fd9ad755257e3e7f6f7c /sys/dev/ic/re.c | |
parent | e5fea0cce4df41f7cd12b6bc013a75712e7f3ade (diff) |
Properly ifdef debug bits to save a bit of space.
ok reyk@
Diffstat (limited to 'sys/dev/ic/re.c')
-rw-r--r-- | sys/dev/ic/re.c | 8 |
1 files changed, 6 insertions, 2 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); |