summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-09-26 18:07:13 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-09-26 18:07:13 +0000
commitf219c0ac18ed0b4ab9d257679afd03a1a8e68af0 (patch)
treea0c4e9112d37d640740f25caeb088ddd876c475d /sys/arch/i386
parentde54d242c1d0e7ef475558e381625715ff899d32 (diff)
nice diskinfo; terms consistancy by millert@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/stand/libsa/cmd_i386.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/libsa/cmd_i386.c b/sys/arch/i386/stand/libsa/cmd_i386.c
index 56e787c4beb..b9efdb414fc 100644
--- a/sys/arch/i386/stand/libsa/cmd_i386.c
+++ b/sys/arch/i386/stand/libsa/cmd_i386.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd_i386.c,v 1.6 1997/09/17 19:55:36 mickey Exp $ */
+/* $OpenBSD: cmd_i386.c,v 1.7 1997/09/26 18:07:12 mickey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff, Tobias Weingartner
@@ -54,10 +54,11 @@ Xdiskinfo()
u_int32_t di;
int i;
+ printf("Disk\tCylinders Tracks\tSectors\n");
for(i = 0x80; i < 0x84; i++){
if ((di = biosdinfo(i)))
- printf("\tDisk 0x%x => Tracks %d, Heads %d, Sectors %d\n",
- i, BIOSNTRACKS(di), BIOSNHEADS(di), BIOSNSECTS(di));
+ printf("0x%02x\t%9d %d\t%d\n", i,
+ BIOSNTRACKS(di), BIOSNHEADS(di), BIOSNSECTS(di));
}
return 0;