Wrap Dangerously Dedicated printf under if (bootverbose)

This commit is contained in:
Peter Wemm 2001-12-11 05:35:43 +00:00
parent 2dfc960a5b
commit b21d3f5c61

View File

@ -254,8 +254,10 @@ dsinit(dev, lp, sspp)
sizeof historical_bogus_partition_table) == 0 ||
bcmp(dp0, historical_bogus_partition_table_fixed,
sizeof historical_bogus_partition_table_fixed) == 0) {
printf(
"%s: invalid primary partition table: Dangerously Dedicated (ignored)\n", sname);
if (bootverbose)
printf(
"%s: invalid primary partition table: Dangerously Dedicated (ignored)\n",
sname);
error = EINVAL;
goto done;
}