From c5ce552b85a96f80b9068a45dab696315079682b Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 5 May 2007 12:10:58 +0000 Subject: Properly ifdef debug bits to save a bit of space. ok reyk@ --- sys/dev/ic/re.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/re.c') 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 #include +#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); -- cgit v1.2.3