From 21c5915e7545058bc7e84ee87d4a0d92d79c7175 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 16 Dec 2003 22:53:14 +0000 Subject: a bit more shrinking. do not bother printing the drive bus interfaces, saves more space. --- sys/arch/i386/stand/libsa/diskprobe.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sys/arch/i386/stand/libsa') 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 #include @@ -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); } -- cgit v1.2.3