Back out part of previous; it is perfectly reasonable, and desirable, to
print out debugging info ifdef DEBUG.
This commit is contained in:
parent
ecf815f930
commit
dcfe0e1506
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: isp_pci.c,v 1.26 1998/07/31 02:08:16 mjacob Exp $ */
|
||||
/* $NetBSD: isp_pci.c,v 1.27 1998/07/31 02:14:40 thorpej Exp $ */
|
||||
/*
|
||||
* PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
|
||||
*
|
||||
@ -143,6 +143,9 @@ isp_pci_attach(parent, self, aux)
|
||||
struct device *parent, *self;
|
||||
void *aux;
|
||||
{
|
||||
#ifdef DEBUG
|
||||
static char oneshot = 1;
|
||||
#endif
|
||||
struct pci_attach_args *pa = aux;
|
||||
struct isp_pcisoftc *pcs = (struct isp_pcisoftc *) self;
|
||||
struct ispsoftc *isp = &pcs->pci_isp;
|
||||
@ -241,6 +244,16 @@ isp_pci_attach(parent, self, aux)
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
if (oneshot) {
|
||||
oneshot = 0;
|
||||
printf("***Qlogic ISP Driver, NetBSD (pci) Platform Version "
|
||||
"%d.%d Core Version %d.%d\n",
|
||||
ISP_PLATFORM_VERSION_MAJOR, ISP_PLATFORM_VERSION_MINOR,
|
||||
ISP_CORE_VERSION_MAJOR, ISP_CORE_VERSION_MINOR);
|
||||
}
|
||||
#endif
|
||||
|
||||
ISP_LOCK(isp);
|
||||
isp_reset(isp);
|
||||
if (isp->isp_state != ISP_RESETSTATE) {
|
||||
|
Loading…
Reference in New Issue
Block a user