diff options
author | 2005-11-12 23:08:41 +0000 | |
---|---|---|
committer | 2005-11-12 23:08:41 +0000 | |
commit | ef80d7d85226db5d941b63c481b6950400d943a2 (patch) | |
tree | 3f1eedd38b500c25833dc074bd7f953a014ad7f0 | |
parent | Unbreak i386. (diff) | |
download | wireguard-openbsd-ef80d7d85226db5d941b63c481b6950400d943a2.tar.xz wireguard-openbsd-ef80d7d85226db5d941b63c481b6950400d943a2.zip |
Print HP-IB disk geometry the same way we print SCSI disk geometries
(especially, with the size in MB).
-rw-r--r-- | sys/arch/hp300/dev/hd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/hp300/dev/hd.c b/sys/arch/hp300/dev/hd.c index 56b2840292a..5c3c3912c54 100644 --- a/sys/arch/hp300/dev/hd.c +++ b/sys/arch/hp300/dev/hd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hd.c,v 1.26 2005/09/06 19:01:00 miod Exp $ */ +/* $OpenBSD: hd.c,v 1.27 2005/11/12 23:08:41 miod Exp $ */ /* $NetBSD: rd.c,v 1.33 1997/07/10 18:14:08 kleink Exp $ */ /* @@ -421,10 +421,11 @@ hdident(parent, sc, ha) * XXX blocks. ICK! */ printf(": %s\n", hdidentinfo[id].ri_desc); - printf("%s: %d cylinders, %d heads, %d blocks, %d bytes/block\n", - sc->sc_dev.dv_xname, hdidentinfo[id].ri_ncyl, - hdidentinfo[id].ri_ntpc, hdidentinfo[id].ri_nblocks, - DEV_BSIZE); + printf("%s: %luMB, %lu cyl, %lu head, %lu sec, %lu bytes/sec, %lu sec total\n", + sc->sc_dev.dv_xname, + hdidentinfo[id].ri_nblocks / (1048576 / DEV_BSIZE), + hdidentinfo[id].ri_ncyl, hdidentinfo[id].ri_ntpc, + hdidentinfo[id].ri_nbpt, DEV_BSIZE, hdidentinfo[id].ri_nblocks); return (1); } |