diff options
author | sos <sos@FreeBSD.org> | 2001-10-03 08:25:37 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2001-10-03 08:25:37 +0000 |
commit | f181b807ce68c59949a24e47fa6ee68671df6b47 (patch) | |
tree | 8754b895ce845bc0a7332da31c184e48ebf8e1c9 | |
parent | 8f9173fea7eccb822bd620082c8212de2ef545ab (diff) | |
download | FreeBSD-src-f181b807ce68c59949a24e47fa6ee68671df6b47.zip FreeBSD-src-f181b807ce68c59949a24e47fa6ee68671df6b47.tar.gz |
cosmetics in the bootverbose probe-
-rw-r--r-- | sys/dev/ata/ata-disk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index 3d0d808..679faa5 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -941,8 +941,7 @@ ad_reinit(struct ad_softc *adp) void ad_print(struct ad_softc *adp, char *prepend) { - if (prepend) - printf("%s", prepend); + if (prepend) printf("%s", prepend); if (bootverbose) { ata_printf(adp->controller, adp->unit, "<%.40s/%.8s> ATA-%d disk at ata%d-%s\n", @@ -951,18 +950,21 @@ ad_print(struct ad_softc *adp, char *prepend) device_get_unit(adp->controller->dev), (adp->unit == ATA_MASTER) ? "master" : "slave"); + if (prepend) printf("%s", prepend); ata_printf(adp->controller, adp->unit, "%luMB (%u sectors), %u C, %u H, %u S, %u B\n", adp->total_secs / ((1024L*1024L)/DEV_BSIZE), adp->total_secs, adp->total_secs / (adp->heads * adp->sectors), adp->heads, adp->sectors, DEV_BSIZE); + if (prepend) printf("%s", prepend); ata_printf(adp->controller, adp->unit, "%d secs/int, %d depth queue, %s%s\n", adp->transfersize / DEV_BSIZE, adp->num_tags + 1, (adp->flags & AD_F_TAG_ENABLED) ? "tagged " : "", ata_mode2str(adp->controller->mode[ATA_DEV(adp->unit)])); + if (prepend) printf("%s", prepend); ata_printf(adp->controller, adp->unit, "piomode=%d dmamode=%d udmamode=%d cblid=%d\n", ata_pmode(AD_PARAM), ata_wmode(AD_PARAM), |