From 0fa3811974509e434f3ba10d64a560fe329edfc6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 27 Apr 2000 00:41:07 +0000 Subject: newline manglings --- sys/arch/i386/pci/pchb.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/arch/i386/pci/pchb.c b/sys/arch/i386/pci/pchb.c index 35b7c5add1b..c85a4883a99 100644 --- a/sys/arch/i386/pci/pchb.c +++ b/sys/arch/i386/pci/pchb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pchb.c,v 1.10 2000/04/26 18:39:29 deraadt Exp $ */ +/* $OpenBSD: pchb.c,v 1.11 2000/04/27 00:41:06 deraadt Exp $ */ /* $NetBSD: pchb.c,v 1.6 1997/06/06 23:29:16 thorpej Exp $ */ /* @@ -154,6 +154,7 @@ pchbattach(parent, self, aux) struct pcibus_attach_args pba; pcireg_t bcreg; u_char bdnum, pbnum; + int neednl = 1; int i; /* @@ -176,7 +177,8 @@ pchbattach(parent, self, aux) * This host bridge has a second PCI bus. * Configure it. */ - printf(": has pci bus %d", bdnum); + printf(": has pci bus %d\n", bdnum); + neednl = 0; pba.pba_busname = "pci"; pba.pba_iot = pa->pa_iot; pba.pba_memt = pa->pa_memt; @@ -216,7 +218,9 @@ pchbattach(parent, self, aux) printf(": Compatibility PB (bus %d)", pbnum); break; case PCISET_INTEL_TYPE_AUX: - printf(": Auxiliary PB (bus %d)", pbnum); + printf(": Auxiliary PB (bus %d)\n", pbnum); + neednl = 0; + /* * This host bridge has a second PCI bus. * Configure it. @@ -284,7 +288,8 @@ pchbattach(parent, self, aux) break; } } - printf("\n"); + if (neednl) + printf("\n"); } int -- cgit v1.2.3