summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa/cmd_i386.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/stand/libsa/cmd_i386.c')
-rw-r--r--sys/arch/i386/stand/libsa/cmd_i386.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/i386/stand/libsa/cmd_i386.c b/sys/arch/i386/stand/libsa/cmd_i386.c
index 1f58de1af58..04f0378d848 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.4 1997/09/02 23:06:55 mickey Exp $ */
+/* $OpenBSD: cmd_i386.c,v 1.5 1997/09/03 04:32:44 weingart Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff, Tobias Weingartner
@@ -48,13 +48,13 @@ const struct cmd_table cmd_machine[] = {
static int
Xdiskinfo()
{
- u_int16_t di;
+ u_int32_t di;
int i;
- for(i = 0x80; i < 0x85; i++){
- if (!(di = biosdinfo(i)))
- printf("\tDisk 0x%x => Heads %d, Sectors %d\n",
- i, BIOSNHEADS(di), BIOSNSECTS(di));
+ 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));
}
return 0;