Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/booke/dev Move debug printfs higher.
details: https://anonhg.NetBSD.org/src/rev/cedc4371ffa6
branches: trunk
changeset: 765475:cedc4371ffa6
user: matt <matt%NetBSD.org@localhost>
date: Sat May 28 05:25:39 2011 +0000
description:
Move debug printfs higher.
diffstat:
sys/arch/powerpc/booke/dev/cpunode.c | 28 +++++++++++++++-------------
1 files changed, 15 insertions(+), 13 deletions(-)
diffs (56 lines):
diff -r 5b9dc5cb23a8 -r cedc4371ffa6 sys/arch/powerpc/booke/dev/cpunode.c
--- a/sys/arch/powerpc/booke/dev/cpunode.c Sat May 28 05:24:55 2011 +0000
+++ b/sys/arch/powerpc/booke/dev/cpunode.c Sat May 28 05:25:39 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpunode.c,v 1.4 2011/02/16 18:45:33 matt Exp $ */
+/* $NetBSD: cpunode.c,v 1.5 2011/05/28 05:25:39 matt Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpunode.c,v 1.4 2011/02/16 18:45:33 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpunode.c,v 1.5 2011/05/28 05:25:39 matt Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -110,6 +110,19 @@
for (u_int childmask = 1; cnl->cnl_name != NULL; cnl++) {
bool inclusive = true;
bool found = (cnl->cnl_ids[0] == 0);
+
+#if DEBUG > 1
+ aprint_normal_dev(self, "dev=%s[%u], addr=%x@%x",
+ cnl->cnl_name, cnl->cnl_instance, cnl->cnl_size,
+ cnl->cnl_addr);
+ if (cnl->cnl_nintr > 0) {
+ aprint_normal(", intrs=%u", cnl->cnl_intrs[0]);
+ for (u_int i = 1; i < cnl->cnl_nintr; i++)
+ aprint_normal(",%u", cnl->cnl_intrs[i]);
+ }
+ aprint_normal("\n");
+#endif
+
for (u_int i = 0;
!found
&& i < __arraycount(cnl->cnl_ids)
@@ -141,17 +154,6 @@
cna.cna_childmask = childmask;
cna.cna_locs = *cnl;
-#if DEBUG > 1
- aprint_normal_dev(self, "dev=%s[%u], addr=%x@%x",
- cnl->cnl_name, cnl->cnl_instance, cnl->cnl_size,
- cnl->cnl_addr);
- if (cnl->cnl_nintr > 0) {
- aprint_normal(", intrs=%u", cnl->cnl_intrs[0]);
- for (u_int i = 1; i < cnl->cnl_nintr; i++)
- aprint_normal(",%u", cnl->cnl_intrs[i]);
- }
- aprint_normal("\n");
-#endif
(void)config_found_sm_loc(self, "cpunode", NULL, &cna,
cpunode_print, NULL);
childmask <<= 1;
Home |
Main Index |
Thread Index |
Old Index