Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt FDT interrupts -- clean up debug printfs



details:   https://anonhg.NetBSD.org/src/rev/0fde3fe0dd86
branches:  trunk
changeset: 342702:0fde3fe0dd86
user:      marty <marty%NetBSD.org@localhost>
date:      Tue Jan 05 21:57:18 2016 +0000

description:
FDT interrupts -- clean up debug printfs

Ooops. forgot to delete my debug printfs before my last checkin.

diffstat:

 sys/dev/fdt/fdt_intr.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (42 lines):

diff -r f13e854dbbfb -r 0fde3fe0dd86 sys/dev/fdt/fdt_intr.c
--- a/sys/dev/fdt/fdt_intr.c    Tue Jan 05 21:53:48 2016 +0000
+++ b/sys/dev/fdt/fdt_intr.c    Tue Jan 05 21:57:18 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_intr.c,v 1.4 2016/01/05 21:53:48 marty Exp $ */
+/* $NetBSD: fdt_intr.c,v 1.5 2016/01/05 21:57:18 marty Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_intr.c,v 1.4 2016/01/05 21:53:48 marty Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_intr.c,v 1.5 2016/01/05 21:57:18 marty Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -271,14 +271,10 @@
        u_int *specifiers;
        int interrupt_parent, interrupt_cells, len;
 
-       printf("%s: phandle = %d pindex = %d\n", __func__, phandle, pindex);
-
        len = OF_getprop(phandle, "interrupt-parent", &interrupt_parent,
            sizeof(interrupt_parent));
        interrupt_parent = be32toh(interrupt_parent);
        interrupt_parent = fdtbus_get_phandle_from_native(interrupt_parent);
-       printf("%s: len = %d interrupt_parent = %d\n", __func__, len,
-              interrupt_parent);
        if (len != sizeof(interrupt_parent) || interrupt_parent <= 0) {
                printf("%s: interrupt_parent sanity check failed\n", __func__);
                return NULL;
@@ -287,8 +283,6 @@
        len = OF_getprop(interrupt_parent, "#interrupt-cells",
                         &interrupt_cells,  sizeof(interrupt_cells));
        interrupt_cells = be32toh(interrupt_cells);
-       printf("%s: len = %d interrupt_cells = %d\n", __func__, len,
-              interrupt_cells);
        if (len != sizeof(interrupt_cells) || interrupt_cells <= 0) {
                printf("%s: interrupt_celyls sanity check failed\n", __func__);
                return NULL;



Home | Main Index | Thread Index | Old Index