-/* $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 $ */
/*
struct pcibus_attach_args pba;
pcireg_t bcreg;
u_char bdnum, pbnum;
+ int neednl = 1;
int i;
/*
* 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;
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.
break;
}
}
- printf("\n");
+ if (neednl)
+ printf("\n");
}
int