diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-05-30 23:13:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-05-30 23:13:19 +0000 |
commit | c783e88aadde94bbe521013f3dbff71df8fff4f3 (patch) | |
tree | f4e4be0fb846d0522be16254987bb598139c7dc4 /sys/arch/amd64 | |
parent | f51db08d6635c6384e5f869fe34ad10f4faf881d (diff) |
Without -v, be quiet
ok toby
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/stand/installboot/installboot.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/sys/arch/amd64/stand/installboot/installboot.c b/sys/arch/amd64/stand/installboot/installboot.c index ef7220c801f..4be19ff44f2 100644 --- a/sys/arch/amd64/stand/installboot/installboot.c +++ b/sys/arch/amd64/stand/installboot/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.11 2009/04/23 16:39:16 deraadt Exp $ */ +/* $OpenBSD: installboot.c,v 1.12 2009/05/30 23:13:14 deraadt Exp $ */ /* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ /* @@ -241,17 +241,19 @@ findopenbsd(int devfd, struct disklabel *dl, off_t mbroff, int *n) if (!dp->dp_size) continue; if (dp->dp_typ == DOSPTYP_OPENBSD) { - fprintf(stderr, - "using MBR partition %ld: type 0x%02X offset %d\n", - (long)(dp - mbr.dmbr_parts), - dp->dp_typ, dp->dp_start); + if (verbose) + fprintf(stderr, + "using MBR partition %ld: type 0x%02X offset %d\n", + (long)(dp - mbr.dmbr_parts), + dp->dp_typ, dp->dp_start); return (dp->dp_start + mbroff); } else if (dp->dp_typ == DOSPTYP_EXTEND || dp->dp_typ == DOSPTYP_EXTENDL) { - fprintf(stderr, - "extended partition %ld: type 0x%02X offset %d\n", - (long)(dp - mbr.dmbr_parts), - dp->dp_typ, dp->dp_start); + if (verbose) + fprintf(stderr, + "extended partition %ld: type 0x%02X offset %d\n", + (long)(dp - mbr.dmbr_parts), + dp->dp_typ, dp->dp_start); startoff = (off_t)dp->dp_start + mbroff; start = findopenbsd(devfd, dl, startoff, n); if (start != -1) |