diff options
author | Tom Cosgrove <tom@cvs.openbsd.org> | 2004-02-21 00:29:58 +0000 |
---|---|---|
committer | Tom Cosgrove <tom@cvs.openbsd.org> | 2004-02-21 00:29:58 +0000 |
commit | 58a7a2ddeba0c89ba89db730cfad33aeb85c81d6 (patch) | |
tree | d06938099ecae9fd98c9cb3e873b757b5ac4c44a /sys/arch/i386/stand | |
parent | 16b0cb820cd404792351ebb8bb385a9c8b983348 (diff) |
Tidy up installboot -v output.
requested by and ok deraadt@
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r-- | sys/arch/i386/stand/installboot/installboot.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/sys/arch/i386/stand/installboot/installboot.c b/sys/arch/i386/stand/installboot/installboot.c index 5585eeb1bbb..0ffefbfbe3d 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.43 2004/01/26 23:21:49 tom Exp $ */ +/* $OpenBSD: installboot.c,v 1.44 2004/02/21 00:29:57 tom Exp $ */ /* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ /* @@ -419,9 +419,6 @@ getbootparams(char *boot, int devfd, struct disklabel *dl) ndb = howmany(ip->di_size, fs->fs_bsize); if (ndb <= 0) errx(1, "No blocks to load"); - if (verbose) - fprintf(stderr, "%s is %d blocks x %d bytes\n", - boot, ndb, fs->fs_bsize); /* * Now set the values that will need to go into biosboot @@ -438,6 +435,16 @@ getbootparams(char *boot, int devfd, struct disklabel *dl) ((((char *)ap) - buf) + INODEOFF)); sym_set_value(pbr_symbols, "_nblocks", ndb); + if (verbose) { + fprintf(stderr, "%s is %d blocks x %d bytes\n", + boot, ndb, fs->fs_bsize); + fprintf(stderr, "fs block shift %u; part offset %u; " + "inode block %u, offset %u\n", + fs->fs_fsbtodb, pl->p_offset, + ino_to_fsba(fs, statbuf.st_ino), + ((((char *)ap) - buf) + INODEOFF)); + } + return 0; } @@ -524,8 +531,10 @@ pbr_set_symbols(char *fname, char *proto, struct sym_data *sym_list) free(nl); +#if 0 if (verbose) fprintf(stderr, "%s = %u\n", sym->sym_name, sym->sym_value); +#endif } } |