Move a verbose printf before the first exit so we get a chance

to see what was there.
This commit is contained in:
sos 2004-04-19 18:29:43 +00:00
parent fce4fe318a
commit 313fe9e05d

View File

@ -563,16 +563,16 @@ ata_generic_reset(struct ata_channel *ch)
}
}
if (bootverbose)
ata_printf(ch, -1, "reset tp1 mask=%02x ostat0=%02x ostat1=%02x\n",
mask, ostat0, ostat1);
/* if nothing showed up there is no need to get any further */
/* SOS is that too strong?, we just might loose devices here XXX */
ch->devices = 0;
if (!mask)
return;
if (bootverbose)
ata_printf(ch, -1, "reset tp1 mask=%02x ostat0=%02x ostat1=%02x\n",
mask, ostat0, ostat1);
/* reset (both) devices on this channel */
ATA_IDX_OUTB(ch, ATA_DRIVE, ATA_D_IBM | ATA_MASTER);
DELAY(10);