summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-09-30 19:48:30 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-09-30 19:48:30 +0000
commitd9571ed8a55ebefb19a9db62866c023678376501 (patch)
tree8f823ee9948b7831fefd23e255c1b80ec2824acb /sys
parent11ec6404222fa10095d258f1c4363a78addfee26 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/isa/diskslice_machdep.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/i386/isa/diskslice_machdep.c b/sys/i386/isa/diskslice_machdep.c
index 4625058e4034..756b96089245 100644
--- a/sys/i386/isa/diskslice_machdep.c
+++ b/sys/i386/isa/diskslice_machdep.c
@@ -35,7 +35,7 @@
*
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
- * $Id: diskslice_machdep.c,v 1.21.2.1 1996/11/06 10:33:24 phk Exp $
+ * $Id: diskslice_machdep.c,v 1.21.2.2 1997/05/11 12:48:33 bde Exp $
*/
#include <stddef.h>
@@ -211,8 +211,9 @@ reread_mbr:
sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART,
partname);
if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) {
- printf("%s: invalid primary partition table: no magic\n",
- sname);
+ if (bootverbose)
+ printf("%s: invalid primary partition table: no magic\n",
+ sname);
error = EINVAL;
goto done;
}
@@ -401,8 +402,9 @@ extended(dname, dev, strat, lp, ssp, ext_offset, ext_size, base_ext_offset,
if (cp[0x1FE] != 0x55 || cp[0x1FF] != 0xAA) {
sname = dsname(dname, dkunit(dev), WHOLE_DISK_SLICE, RAW_PART,
partname);
- printf("%s: invalid extended partition table: no magic\n",
- sname);
+ if (bootverbose)
+ printf("%s: invalid extended partition table: no magic\n",
+ sname);
goto done;
}