From 80b0734e38d576e932c2d7cce09329121575a646 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 8 Oct 2012 20:06:38 +0000 Subject: push irqloop warnings into #ifdef DEBUG --- sys/arch/macppc/dev/openpic.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/arch/macppc/dev/openpic.c b/sys/arch/macppc/dev/openpic.c index ac3008f3fda..d07df8ac68e 100644 --- a/sys/arch/macppc/dev/openpic.c +++ b/sys/arch/macppc/dev/openpic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openpic.c,v 1.68 2011/10/28 15:18:51 drahn Exp $ */ +/* $OpenBSD: openpic.c,v 1.69 2012/10/08 20:06:37 deraadt Exp $ */ /*- * Copyright (c) 2008 Dale Rahn @@ -576,16 +576,20 @@ openpic_ext_intr() while (irq != 255) { openpic_irqloop[ci->ci_cpuid]++; +#ifdef DEBUG if (openpic_irqloop[ci->ci_cpuid] > 20 || openpic_irqnest[ci->ci_cpuid] > 3) { printf("irqloop %d irqnest %d\n", openpic_irqloop[ci->ci_cpuid], openpic_irqnest[ci->ci_cpuid]); } +#endif if (openpic_irqloop[ci->ci_cpuid] > 20) { +#ifdef DEBUG printf("irqloop %d irqnest %d: returning\n", openpic_irqloop[ci->ci_cpuid], openpic_irqnest[ci->ci_cpuid]); +#endif openpic_irqnest[ci->ci_cpuid]--; return; } -- cgit v1.2.3