summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_diskmbr.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-09-27 15:34:34 +0000
committerjoerg <joerg@FreeBSD.org>1997-09-27 15:34:34 +0000
commit09662851527f6d3ed013037c8742fe9c7178c0c6 (patch)
tree69b62ed7484d359c7b6fa4e24136b51af4fe0506 /sys/kern/subr_diskmbr.c
parent54f0e5ef9d52ea266e68426ac3ee07012a5101e7 (diff)
downloadFreeBSD-src-09662851527f6d3ed013037c8742fe9c7178c0c6.zip
FreeBSD-src-09662851527f6d3ed013037c8742fe9c7178c0c6.tar.gz
Hide the `no magic' babble behind bootverbose, since it has proven to
be too much magic for 99.9 % of the users.
Diffstat (limited to 'sys/kern/subr_diskmbr.c')
-rw-r--r--sys/kern/subr_diskmbr.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/kern/subr_diskmbr.c b/sys/kern/subr_diskmbr.c
index 040fc18..df94edf 100644
--- a/sys/kern/subr_diskmbr.c
+++ b/sys/kern/subr_diskmbr.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.24 1997/02/22 09:36:06 peter Exp $
+ * $Id: diskslice_machdep.c,v 1.25 1997/04/19 14:14:17 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;
}
OpenPOWER on IntegriCloud