Module Name:    src
Committed By:   christos
Date:           Wed Mar  7 14:59:14 UTC 2018

Modified Files:
        src/sys/arch/emips/stand/common: ace.c

Log Message:
cleanup debugging code so that it compiles again.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/emips/stand/common/ace.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/emips/stand/common/ace.c
diff -u src/sys/arch/emips/stand/common/ace.c:1.3 src/sys/arch/emips/stand/common/ace.c:1.4
--- src/sys/arch/emips/stand/common/ace.c:1.3	Wed Feb  5 14:07:16 2014
+++ src/sys/arch/emips/stand/common/ace.c	Wed Mar  7 09:59:14 2018
@@ -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 @@ static int SysAce_read(struct _Sac * Int
                     
                     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
                 {

Reply via email to