summaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-22 04:36:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-22 04:36:48 +0000
commite8f98a71cb8643ce8d66c37125c02969b069334d (patch)
tree9924332587c56e936cfdfdc3fc0649bad3eb9291 /sys/dev/ata
parentf99c2c82f016f4c21edc6eb00fac1baeaa4c4bc2 (diff)
shorten dmesg output
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/wd.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c
index 4235ec4b325..0c845926f22 100644
--- a/sys/dev/ata/wd.c
+++ b/sys/dev/ata/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.3 1999/07/22 04:00:42 csapuntz Exp $ */
+/* $OpenBSD: wd.c,v 1.4 1999/07/22 04:36:47 deraadt Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
@@ -321,8 +321,7 @@ wdattach(parent, self, aux)
wd->sc_multi = 1;
}
- printf("%s: drive supports %d-sector pio transfers,",
- wd->sc_dev.dv_xname, wd->sc_multi);
+ printf("%s: %d-sector PIO,", wd->sc_dev.dv_xname, wd->sc_multi);
/* Prior to ATA-4, LBA was optional. */
if ((wd->sc_params.atap_capabilities1 & WDC_CAP_LBA) != 0)
@@ -335,32 +334,25 @@ wdattach(parent, self, aux)
#endif
if ((wd->sc_flags & WDF_LBA) != 0) {
- printf(" lba addressing\n");
wd->sc_capacity =
(wd->sc_params.atap_capacity[1] << 16) |
wd->sc_params.atap_capacity[0];
- printf("%s: %dMB, %d cyl, %d head, %d sec, "
- "%d bytes/sect x %d sectors\n",
- self->dv_xname,
+ printf(" LBA, %dMB, %d cyl, %d head, %d sec, %d sectors\n",
wd->sc_capacity / (1048576 / DEV_BSIZE),
wd->sc_params.atap_cylinders,
wd->sc_params.atap_heads,
wd->sc_params.atap_sectors,
- DEV_BSIZE,
wd->sc_capacity);
} else {
- printf(" chs addressing\n");
wd->sc_capacity =
wd->sc_params.atap_cylinders *
wd->sc_params.atap_heads *
wd->sc_params.atap_sectors;
- printf("%s: %dMB, %d cyl, %d head, %d sec, %d bytes/sect x %d "
- "sectors\n", self->dv_xname,
+ printf(" CHS, %dMB, %d cyl, %d head, %d sec, %d sectors\n",
wd->sc_capacity / (1048576 / DEV_BSIZE),
wd->sc_params.atap_cylinders,
wd->sc_params.atap_heads,
wd->sc_params.atap_sectors,
- DEV_BSIZE,
wd->sc_capacity);
}
WDCDEBUG_PRINT(("%s: atap_dmatiming_mimi=%d, atap_dmatiming_recom=%d\n",