From c21701d99b43f4ec766f0092662620f70bbae705 Mon Sep 17 00:00:00 2001 From: Steve Passe Date: Tue, 27 May 1997 19:28:10 +0000 Subject: [PATCH] Nuke the printing of the unredirect message unless bootverbose. --- sys/amd64/amd64/mp_machdep.c | 10 +++++++--- sys/amd64/amd64/mptable.c | 10 +++++++--- sys/amd64/include/mptable.h | 10 +++++++--- sys/i386/i386/mp_machdep.c | 10 +++++++--- sys/i386/i386/mptable.c | 10 +++++++--- sys/i386/include/mptable.h | 10 +++++++--- sys/kern/subr_smp.c | 10 +++++++--- 7 files changed, 49 insertions(+), 21 deletions(-) diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c index c837502089c..e1bf1170ea7 100644 --- a/sys/amd64/amd64/mp_machdep.c +++ b/sys/amd64/amd64/mp_machdep.c @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp_machdep.c,v 1.5 1997/05/26 09:12:19 smp Exp smp $ + * $Id: mp_machdep.c,v 1.13 1997/05/26 09:23:30 fsmp Exp $ */ #include "opt_smp.h" @@ -1058,11 +1058,15 @@ int undirect_pci_irq(int rirq) { #if defined(READY) - printf("Freeing redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing redirected PCI irq %d.\n", rirq); + /** FIXME: tickle the MB redirector chip */ return ???; #else - printf("Freeing (NOT implemented) redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing (NOT implemented) redirected PCI irq %d.\n", + rirq); return 0; #endif /* READY */ } diff --git a/sys/amd64/amd64/mptable.c b/sys/amd64/amd64/mptable.c index c837502089c..e1bf1170ea7 100644 --- a/sys/amd64/amd64/mptable.c +++ b/sys/amd64/amd64/mptable.c @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp_machdep.c,v 1.5 1997/05/26 09:12:19 smp Exp smp $ + * $Id: mp_machdep.c,v 1.13 1997/05/26 09:23:30 fsmp Exp $ */ #include "opt_smp.h" @@ -1058,11 +1058,15 @@ int undirect_pci_irq(int rirq) { #if defined(READY) - printf("Freeing redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing redirected PCI irq %d.\n", rirq); + /** FIXME: tickle the MB redirector chip */ return ???; #else - printf("Freeing (NOT implemented) redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing (NOT implemented) redirected PCI irq %d.\n", + rirq); return 0; #endif /* READY */ } diff --git a/sys/amd64/include/mptable.h b/sys/amd64/include/mptable.h index c837502089c..e1bf1170ea7 100644 --- a/sys/amd64/include/mptable.h +++ b/sys/amd64/include/mptable.h @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp_machdep.c,v 1.5 1997/05/26 09:12:19 smp Exp smp $ + * $Id: mp_machdep.c,v 1.13 1997/05/26 09:23:30 fsmp Exp $ */ #include "opt_smp.h" @@ -1058,11 +1058,15 @@ int undirect_pci_irq(int rirq) { #if defined(READY) - printf("Freeing redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing redirected PCI irq %d.\n", rirq); + /** FIXME: tickle the MB redirector chip */ return ???; #else - printf("Freeing (NOT implemented) redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing (NOT implemented) redirected PCI irq %d.\n", + rirq); return 0; #endif /* READY */ } diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c index c837502089c..e1bf1170ea7 100644 --- a/sys/i386/i386/mp_machdep.c +++ b/sys/i386/i386/mp_machdep.c @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp_machdep.c,v 1.5 1997/05/26 09:12:19 smp Exp smp $ + * $Id: mp_machdep.c,v 1.13 1997/05/26 09:23:30 fsmp Exp $ */ #include "opt_smp.h" @@ -1058,11 +1058,15 @@ int undirect_pci_irq(int rirq) { #if defined(READY) - printf("Freeing redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing redirected PCI irq %d.\n", rirq); + /** FIXME: tickle the MB redirector chip */ return ???; #else - printf("Freeing (NOT implemented) redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing (NOT implemented) redirected PCI irq %d.\n", + rirq); return 0; #endif /* READY */ } diff --git a/sys/i386/i386/mptable.c b/sys/i386/i386/mptable.c index c837502089c..e1bf1170ea7 100644 --- a/sys/i386/i386/mptable.c +++ b/sys/i386/i386/mptable.c @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp_machdep.c,v 1.5 1997/05/26 09:12:19 smp Exp smp $ + * $Id: mp_machdep.c,v 1.13 1997/05/26 09:23:30 fsmp Exp $ */ #include "opt_smp.h" @@ -1058,11 +1058,15 @@ int undirect_pci_irq(int rirq) { #if defined(READY) - printf("Freeing redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing redirected PCI irq %d.\n", rirq); + /** FIXME: tickle the MB redirector chip */ return ???; #else - printf("Freeing (NOT implemented) redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing (NOT implemented) redirected PCI irq %d.\n", + rirq); return 0; #endif /* READY */ } diff --git a/sys/i386/include/mptable.h b/sys/i386/include/mptable.h index c837502089c..e1bf1170ea7 100644 --- a/sys/i386/include/mptable.h +++ b/sys/i386/include/mptable.h @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp_machdep.c,v 1.5 1997/05/26 09:12:19 smp Exp smp $ + * $Id: mp_machdep.c,v 1.13 1997/05/26 09:23:30 fsmp Exp $ */ #include "opt_smp.h" @@ -1058,11 +1058,15 @@ int undirect_pci_irq(int rirq) { #if defined(READY) - printf("Freeing redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing redirected PCI irq %d.\n", rirq); + /** FIXME: tickle the MB redirector chip */ return ???; #else - printf("Freeing (NOT implemented) redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing (NOT implemented) redirected PCI irq %d.\n", + rirq); return 0; #endif /* READY */ } diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index c837502089c..e1bf1170ea7 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp_machdep.c,v 1.5 1997/05/26 09:12:19 smp Exp smp $ + * $Id: mp_machdep.c,v 1.13 1997/05/26 09:23:30 fsmp Exp $ */ #include "opt_smp.h" @@ -1058,11 +1058,15 @@ int undirect_pci_irq(int rirq) { #if defined(READY) - printf("Freeing redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing redirected PCI irq %d.\n", rirq); + /** FIXME: tickle the MB redirector chip */ return ???; #else - printf("Freeing (NOT implemented) redirected PCI irq %d.\n", rirq); + if (bootverbose) + printf("Freeing (NOT implemented) redirected PCI irq %d.\n", + rirq); return 0; #endif /* READY */ }