Module Name: src Committed By: jmcneill Date: Wed Jan 30 00:56:47 UTC 2019
Modified Files: src/sys/dev/fdt: fdt_subr.c Log Message: Hide address decoding debug messages under FDTBUS_DEBUG To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/sys/dev/fdt/fdt_subr.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/dev/fdt/fdt_subr.c diff -u src/sys/dev/fdt/fdt_subr.c:1.26 src/sys/dev/fdt/fdt_subr.c:1.27 --- src/sys/dev/fdt/fdt_subr.c:1.26 Sun Jan 27 09:19:36 2019 +++ src/sys/dev/fdt/fdt_subr.c Wed Jan 30 00:56:47 2019 @@ -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 <jmcne...@invisible.ca> @@ -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 @@ fdtbus_get_reg64(int phandle, u_int inde 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;