Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/allwinner hide a debug printf



details:   https://anonhg.NetBSD.org/src/rev/5493b9032328
branches:  trunk
changeset: 803878:5493b9032328
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Nov 15 13:41:11 2014 +0000

description:
hide a debug printf

diffstat:

 sys/arch/arm/allwinner/awin_ir.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r bea597c738b4 -r 5493b9032328 sys/arch/arm/allwinner/awin_ir.c
--- a/sys/arch/arm/allwinner/awin_ir.c  Sat Nov 15 13:40:39 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_ir.c  Sat Nov 15 13:41:11 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_ir.c,v 1.2 2014/11/15 13:40:39 jmcneill Exp $ */
+/* $NetBSD: awin_ir.c,v 1.3 2014/11/15 13:41:11 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_ddb.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: awin_ir.c,v 1.2 2014/11/15 13:40:39 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_ir.c,v 1.3 2014/11/15 13:41:11 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -196,7 +196,9 @@
 
        sta = IR_READ(sc, AWIN_IR_RXSTA_REG);
 
+#ifdef AWIN_IR_DEBUG
        printf("%s: sta = 0x%08x\n", __func__, sta);
+#endif
 
        if ((sta & AWIN_IR_RXSTA_MASK) == 0)
                return 0;



Home | Main Index | Thread Index | Old Index