Simplify preload_dump() condition

Hiding this feature behind RB_VERBOSE is gratuitous. The tunable is enough
to limit its use to only those who explicitly request it.

Suggested by:	kevans
This commit is contained in:
mhorne 2020-10-15 20:21:15 +00:00
parent 9cd6dd60d6
commit 3ed1edc439
4 changed files with 4 additions and 8 deletions

View File

@ -1859,8 +1859,7 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
* output is required. If it's grossly incorrect the kernel will never
* make it this far.
*/
if ((boothowto & RB_VERBOSE) &&
getenv_is_true("debug.dump_modinfo_at_boot"))
if (getenv_is_true("debug.dump_modinfo_at_boot"))
preload_dump();
#ifdef DEV_ISA

View File

@ -1032,8 +1032,7 @@ initarm(struct arm_boot_params *abp)
* output is required. If it's grossly incorrect the kernel will never
* make it this far.
*/
if ((boothowto & RB_VERBOSE) &&
getenv_is_true("debug.dump_modinfo_at_boot"))
if (getenv_is_true("debug.dump_modinfo_at_boot"))
preload_dump();
env = kern_getenv("kernelname");

View File

@ -1247,8 +1247,7 @@ initarm(struct arm64_bootparams *abp)
* output is required. If it's grossly incorrect the kernel will never
* make it this far.
*/
if ((boothowto & RB_VERBOSE) &&
getenv_is_true("debug.dump_modinfo_at_boot"))
if (getenv_is_true("debug.dump_modinfo_at_boot"))
preload_dump();
init_proc0(abp->kern_stack);

View File

@ -954,8 +954,7 @@ initriscv(struct riscv_bootparams *rvbp)
* output is required. If it's grossly incorrect the kernel will never
* make it this far.
*/
if ((boothowto & RB_VERBOSE) &&
getenv_is_true("debug.dump_modinfo_at_boot"))
if (getenv_is_true("debug.dump_modinfo_at_boot"))
preload_dump();
init_proc0(rvbp->kern_stack);