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:
Mitchell Horne 2020-10-15 20:21:15 +00:00
parent a98fa52ec6
commit ce4900bc8a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366737
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);