Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/emips/stand/common cleanup debugging code so that i...
details: https://anonhg.NetBSD.org/src/rev/5d7e0eb5fc89
branches: trunk
changeset: 321234:5d7e0eb5fc89
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 07 14:59:14 2018 +0000
description:
cleanup debugging code so that it compiles again.
diffstat:
sys/arch/emips/stand/common/ace.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 268dd28288f7 -r 5d7e0eb5fc89 sys/arch/emips/stand/common/ace.c
--- a/sys/arch/emips/stand/common/ace.c Wed Mar 07 11:18:29 2018 +0000
+++ b/sys/arch/emips/stand/common/ace.c Wed Mar 07 14:59:14 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ace.c,v 1.3 2014/02/05 19:07:16 christos Exp $ */
+/* $NetBSD: ace.c,v 1.4 2018/03/07 14:59:14 christos Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -88,7 +88,12 @@
*/
#if defined(DEBUG)
int acedebug = 2;
-#define DBGME(lev,x) if (lev >= acedebug) x
+#define DBGME(lev,x) \
+ do \
+ if (lev >= acedebug) { \
+ x; \
+ } \
+ while (/*CONSTCOND*/0)
#else
#define DBGME(lev,x)
#endif
@@ -537,9 +542,9 @@
Data32 = Interface->DATABUFREG[0];
Data32 = le32toh(Data32);
-DBGME(0,printf(" %x", Data32));
-if (0 == (0xf & (i+4) )) DBGME(0,printf("\n"));
- memcpy(Buffer+i,&Data32,4);
+ DBGME(0,printf(" %x", Data32));
+ if (0 == (0xf & (i+4))) DBGME(0,printf("\n"));
+ memcpy(Buffer+i, &Data32, 4);
}
else
{
Home |
Main Index |
Thread Index |
Old Index