diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-12-16 22:53:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-12-16 22:53:14 +0000 |
commit | 21c5915e7545058bc7e84ee87d4a0d92d79c7175 (patch) | |
tree | acf4098e90d70eb551f271cfc88b5113ec1b8f74 /sys/arch/i386 | |
parent | 238ad1d0a43515320e4bec6b5689c87f8f097c54 (diff) |
a bit more shrinking. do not bother printing the drive bus interfaces,
saves more space.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/stand/libsa/diskprobe.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/i386/stand/libsa/diskprobe.c b/sys/arch/i386/stand/libsa/diskprobe.c index 62089facae5..48e462dc6e1 100644 --- a/sys/arch/i386/stand/libsa/diskprobe.c +++ b/sys/arch/i386/stand/libsa/diskprobe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diskprobe.c,v 1.23 2003/10/23 18:33:45 fgsch Exp $ */ +/* $OpenBSD: diskprobe.c,v 1.24 2003/12/16 22:53:13 deraadt Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -28,7 +28,7 @@ */ /* We want the disk type names from disklabel.h */ -#define DKTYPENAMES +#undef DKTYPENAMES #include <sys/param.h> #include <sys/queue.h> @@ -222,8 +222,6 @@ dump_diskinfo(void) { struct diskinfo *dip; - (void)fstypenames, (void)fstypesnames; - printf("Disk\tBIOS#\tType\tCyls\tHeads\tSecs\tFlags\tChecksum\n"); for(dip = TAILQ_FIRST(&disklist); dip; dip = TAILQ_NEXT(dip, list)){ bios_diskinfo_t *bdi = &dip->bios_info; @@ -231,8 +229,7 @@ dump_diskinfo(void) printf("%cd%d\t0x%x\t%s\t%d\t%d\t%d\t0x%x\t0x%x\n", (d & 0x80)?'h':'f', d & 0x7F, d, - (bdi->flags & BDI_BADLABEL)?"*none*": - dktypenames[B_TYPE(dip->disklabel.d_type)], + (bdi->flags & BDI_BADLABEL)?"*none*":"label", bdi->bios_cylinders, bdi->bios_heads, bdi->bios_sectors, bdi->flags, bdi->checksum); } |