summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_pppoe.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2004-10-31 17:32:51 +0000
committerglebius <glebius@FreeBSD.org>2004-10-31 17:32:51 +0000
commitf915b81562a8efc72df0b8d31c07d15630050c91 (patch)
tree9dba6df7143dd626600275c15cb48727bbf19ad9 /sys/netgraph/ng_pppoe.c
parent22d75b597a9940a02c015527c38646782f9ee3a1 (diff)
downloadFreeBSD-src-f915b81562a8efc72df0b8d31c07d15630050c91.zip
FreeBSD-src-f915b81562a8efc72df0b8d31c07d15630050c91.tar.gz
Since last change moved ';' from macro to code, we need to embrace
macros with 'do {} while (0)' to avoid error in case macro is not defined. Prodded by: julian, archie Pointy hat to: glebius
Diffstat (limited to 'sys/netgraph/ng_pppoe.c')
-rw-r--r--sys/netgraph/ng_pppoe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c
index 957c2f0..511ca2d 100644
--- a/sys/netgraph/ng_pppoe.c
+++ b/sys/netgraph/ng_pppoe.c
@@ -40,9 +40,9 @@
* $Whistle: ng_pppoe.c,v 1.10 1999/11/01 09:24:52 julian Exp $
*/
#if 0
-#define DBG printf("pppoe: %s\n", __func__ )
+#define DBG do { printf("ng_device: %s\n", __func__ ); } while (0)
#else
-#define DBG
+#define DBG do {} while (0)
#endif
#include <sys/param.h>
OpenPOWER on IntegriCloud