summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-09-14 01:15:24 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-09-14 01:15:24 +0000
commit3d05f6b41050558a277bcdb76aad28abbcc2c625 (patch)
tree69919500408df5f94d32d26f2f786b97463fc4a6
parent3dfe25806cffb60efe556f8edb823f9608791e45 (diff)
print used geometry when verbose
-rw-r--r--sys/arch/i386/stand/installboot/installboot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/i386/stand/installboot/installboot.c b/sys/arch/i386/stand/installboot/installboot.c
index 4c5cd0eacac..3ac046e23f8 100644
--- a/sys/arch/i386/stand/installboot/installboot.c
+++ b/sys/arch/i386/stand/installboot/installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.c,v 1.10 1997/09/04 22:36:23 mickey Exp $ */
+/* $OpenBSD: installboot.c,v 1.11 1997/09/14 01:15:23 mickey Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
@@ -439,6 +439,9 @@ loadblocknums(boot, devfd, dl)
dl->d_secpercyl = dl->d_nsectors * heads;
}
+ if (verbose)
+ fprintf(stderr, "Using disk geometry of %u spt and %u tpc.\n",
+ dl->d_nsectors, dl->d_secpercyl/dl->d_nsectors);
/*
* Get the block numbers; we don't handle fragments
*/