summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-lowlevel.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2004-04-19 18:29:43 +0000
committersos <sos@FreeBSD.org>2004-04-19 18:29:43 +0000
commit313fe9e05d854c8c4c18f5147d2d6c2bd7eb964c (patch)
tree9d0783f3d4cad90b64629fe55f14dcfe823592bd /sys/dev/ata/ata-lowlevel.c
parentfce4fe318a189c479fcaf473165e5cd331c8bc84 (diff)
downloadFreeBSD-src-313fe9e05d854c8c4c18f5147d2d6c2bd7eb964c.zip
FreeBSD-src-313fe9e05d854c8c4c18f5147d2d6c2bd7eb964c.tar.gz
Move a verbose printf before the first exit so we get a chance
to see what was there.
Diffstat (limited to 'sys/dev/ata/ata-lowlevel.c')
-rw-r--r--sys/dev/ata/ata-lowlevel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ata/ata-lowlevel.c b/sys/dev/ata/ata-lowlevel.c
index 0535de8..37ebbb7 100644
--- a/sys/dev/ata/ata-lowlevel.c
+++ b/sys/dev/ata/ata-lowlevel.c
@@ -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);
OpenPOWER on IntegriCloud