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:
parent
9cd6dd60d6
commit
3ed1edc439
@ -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
|
||||
|
@ -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");
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user