diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-12 23:08:42 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-12 23:08:42 +0000 |
commit | 7fad5399124c0055036bdc21a070504519059163 (patch) | |
tree | dc996c661cdcf5261e61de225450cbe4ec44a96c /sys/arch | |
parent | 3b2cc71adc16f4c64a96621747740718e67c9b81 (diff) |
Print HP-IB disk geometry the same way we print SCSI disk geometries
(especially, with the size in MB).
Diffstat (limited to 'sys/arch')
-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); } |