diff options
author | ache <ache@FreeBSD.org> | 1995-04-10 18:44:49 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-04-10 18:44:49 +0000 |
commit | 22aeb7b0802de48f886c9f428ae99d8a969031d1 (patch) | |
tree | 0d01b6420a9b0f48e5171154526d1ff647cb6a0c /sys/scsi/sd.c | |
parent | 6a4b8abd5d055a202d2cce97dcc67190040e5066 (diff) | |
download | FreeBSD-src-22aeb7b0802de48f886c9f428ae99d8a969031d1.zip FreeBSD-src-22aeb7b0802de48f886c9f428ae99d8a969031d1.tar.gz |
sdattach: print out cyl/hd/sec info in the same format as wd driver does
as default case, very helpful in many cases.
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 0b678a8..cc49a9f 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992 * - * $Id: sd.c,v 1.56 1995/03/21 11:21:07 dufault Exp $ + * $Id: sd.c,v 1.57 1995/03/23 16:09:01 bde Exp $ */ #define SPLSD splbio @@ -188,17 +188,18 @@ sdattach(struct scsi_link *sc_link) * -- this avoids the division below from falling over */ if(dp->secsiz == 0) dp->secsiz = 512; - printf("%ldMB (%ld %d byte sectors)", + printf("%luMB (%lu S), %u C %u H %u S/T %u B/S", dp->disksize / ((1024L * 1024L) / dp->secsiz), dp->disksize, + dp->cyls, + dp->heads, + dp->sectors, dp->secsiz); if ( (sc_link->flags & SDEV_BOOTVERBOSE) ) { printf("\n"); sc_print_addr(sc_link); - printf("with %d cyls, %d heads, and an average %d sectors/track", - dp->cyls, dp->heads, dp->sectors); } sd->flags |= SDINIT; |