diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-05-26 18:40:29 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-05-26 18:40:29 +0000 |
commit | 6dbf10d7fc282220e83df2406fb9557bf166fd32 (patch) | |
tree | ab78f5c97f6ed16cd376639d5850832f7b5f1a5a /sys/dev | |
parent | 8ff29bdfeea043c6e92d4736724a992b63102a3c (diff) |
wrap the debug macro in do { } while (0)
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_xge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_xge.c b/sys/dev/pci/if_xge.c index 4ef2a69bdb4..88b7184f759 100644 --- a/sys/dev/pci/if_xge.c +++ b/sys/dev/pci/if_xge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_xge.c,v 1.40 2007/05/26 18:38:26 dlg Exp $ */ +/* $OpenBSD: if_xge.c,v 1.41 2007/05/26 18:40:28 dlg Exp $ */ /* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */ /* @@ -209,8 +209,8 @@ struct xge_softc { }; #ifdef XGE_DEBUG -#define DPRINTF(x) if (xgedebug) printf x -#define DPRINTFN(n,x) if (xgedebug >= (n)) printf x +#define DPRINTF(x) do { if (xgedebug) printf x ; } while (0) +#define DPRINTFN(n,x) do { if (xgedebug >= (n)) printf x ; } while (0) int xgedebug = 0; #else #define DPRINTF(x) |