Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Hide address decoding debug messages under FDTBU...



details:   https://anonhg.NetBSD.org/src/rev/13431cfb6efb
branches:  trunk
changeset: 448312:13431cfb6efb
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jan 30 00:56:47 2019 +0000

description:
Hide address decoding debug messages under FDTBUS_DEBUG

diffstat:

 sys/dev/fdt/fdt_subr.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 92cacea2a9f2 -r 13431cfb6efb sys/dev/fdt/fdt_subr.c
--- a/sys/dev/fdt/fdt_subr.c    Wed Jan 30 00:55:04 2019 +0000
+++ b/sys/dev/fdt/fdt_subr.c    Wed Jan 30 00:56:47 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_subr.c,v 1.26 2019/01/27 09:19:36 rin Exp $ */
+/* $NetBSD: fdt_subr.c,v 1.27 2019/01/30 00:56:47 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_subr.c,v 1.26 2019/01/27 09:19:36 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_subr.c,v 1.27 2019/01/30 00:56:47 jmcneill Exp $");
 
 #include "opt_fdt.h"
 
@@ -289,10 +289,12 @@
 
        if (paddr) {
                *paddr = fdtbus_decode_range(OF_parent(phandle), addr);
+#ifdef FDTBUS_DEBUG
                const char *name = fdt_get_name(fdtbus_get_data(),
                    fdtbus_phandle2offset(phandle), NULL);
-               aprint_debug("fdt: [%s] decoded addr #%u: %" PRIx64
+               printf("fdt: [%s] decoded addr #%u: %" PRIx64
                    " -> %" PRIx64 "\n", name, index, addr, *paddr);
+#endif
        }
        if (psize)
                *psize = size;



Home | Main Index | Thread Index | Old Index