summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-01-10 22:46:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-01-10 22:46:49 +0000
commit8e518380405b7824ab5f31fcb416bcecf5915645 (patch)
treea0e3db7d7a6d35161026047f5afdab40511ad30a /sys/arch/sparc64
parentd00f62f262e42fba50c23cce0e9f8afc5ea76b0c (diff)
instead of showing { love }, fix the macro do use the do { ... } while (0) construct; ok kettenis marco
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/ofw_machdep.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sparc64/sparc64/ofw_machdep.c b/sys/arch/sparc64/sparc64/ofw_machdep.c
index d2b5a0ef671..5ab6c580cb6 100644
--- a/sys/arch/sparc64/sparc64/ofw_machdep.c
+++ b/sys/arch/sparc64/sparc64/ofw_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofw_machdep.c,v 1.22 2008/01/10 22:25:20 marco Exp $ */
+/* $OpenBSD: ofw_machdep.c,v 1.23 2008/01/10 22:46:48 deraadt Exp $ */
/* $NetBSD: ofw_machdep.c,v 1.16 2001/07/20 00:07:14 eeh Exp $ */
/*
@@ -668,7 +668,7 @@ prom_printf(const char *fmt, ...)
#ifdef DEBUG
int ofmapintrdebug = 0;
-#define DPRINTF(x) if (ofmapintrdebug) printf x
+#define DPRINTF(x) do { if (ofmapintrdebug) printf x; } while (0)
#else
#define DPRINTF(x)
#endif
@@ -919,11 +919,11 @@ OF_mapintr(int node, int *interrupt, int validlen, int buflen)
}
/* Get reg for the next level search. */
- if ((len = OF_getprop(node, "reg", &reg, sizeof(reg))) <= 0) {
+ if ((len = OF_getprop(node, "reg", &reg, sizeof(reg))) <= 0)
DPRINTF(("OF_mapintr: no reg property?\n"));
- } else {
+ else
DPRINTF(("reg len %d\n", len));
- }
+
node = OF_parent(node);
}
return (rc);