diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-24 22:22:58 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-24 22:22:58 +0000 |
commit | 827306a31a907dbc5f7d70266ecaa69365799bec (patch) | |
tree | d351ae52fa09963d648371c3f718a97158523f10 /sys/arch/i386/stand/libsa/cmd_i386.c | |
parent | 7ae8e04243646e3289cc73db68915e88382906f1 (diff) |
checksumming stuff from niklas
Diffstat (limited to 'sys/arch/i386/stand/libsa/cmd_i386.c')
-rw-r--r-- | sys/arch/i386/stand/libsa/cmd_i386.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/arch/i386/stand/libsa/cmd_i386.c b/sys/arch/i386/stand/libsa/cmd_i386.c index 30e10bc23f9..2e641f00094 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.16 1997/10/23 15:13:27 weingart Exp $ */ +/* $OpenBSD: cmd_i386.c,v 1.17 1997/10/24 22:22:56 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff, Tobias Weingartner @@ -61,18 +61,18 @@ Xdiskinfo() { int i; - printf("Disk\tBIOS#\t BSD#\tCylinders\tHeads\tSectors\tChecksum\n"); + printf( + "Disk\tBIOS#\tBSD#\t\tCyls\tHeads\tSecs\tFlags\tChecksum(%d)\n", + bios_cksumlen); for(i = 0; bios_diskinfo[i].bios_number != -1 && i < 10; i++){ int d = bios_diskinfo[i].bios_number; - printf("%cd%d\t 0x%x\t0x%x\t %s%d \t%d\t%d\t0x%x[%d]\n", - (d & 0x80)?'h':'f', (d & 0x80)?d - 128:d, d, - bios_diskinfo[i].bsd_dev, - (bios_diskinfo[i].bios_cylinders < 100)?" ":" ", - bios_diskinfo[i].bios_cylinders, - bios_diskinfo[i].bios_heads, - bios_diskinfo[i].bios_sectors, - bios_diskinfo[i].checksum, bios_diskinfo[i].checklen); + printf( + "%cd%d\t0x%x\t0x%x\t%d\t%d\t%d\t0x%x\t0x%x\n", + (d & 0x80)?'h':'f', (d & 0x80)?d - 128:d, d, + bios_diskinfo[i].bsd_dev, bios_diskinfo[i].bios_cylinders, + bios_diskinfo[i].bios_heads, bios_diskinfo[i].bios_sectors, + bios_diskinfo[i].flags, bios_diskinfo[i].checksum); } return 0; |