Unconditionally log messages corresponding to errors.
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -41,8 +41,7 @@ · 40 unmodified lines | ||
| 41 | 41 | #define VERBOSE_SCFTORTOUT(s, x...) \ |
| 42 | 42 | do { if (verbose) pr_alert(SCFTORT_FLAG s "\n", ## x); } while (0) |
| 43 | 43 | |
| 44 | −#define VERBOSE_SCFTORTOUT_ERRSTRING(s, x...) \ | |
| 45 | − do { if (verbose) pr_alert(SCFTORT_FLAG "!!! " s "\n", ## x); } while (0) | |
| 44 | +#define SCFTORTOUT_ERRSTRING(s, x...) pr_alert(SCFTORT_FLAG "!!! " s "\n", ## x) | |
| 46 | 45 | |
| 47 | 46 | MODULE_LICENSE("GPL"); |
| 48 | 47 | MODULE_AUTHOR("Paul E. McKenney <paulmck@kernel.org>"); |
| @@ -584,14 +583,14 @@ static int __init scf_torture_init(void) · 535 unmodified lines | ||
| 584 | 583 | if (weight_resched1 == 0 && weight_single1 == 0 && weight_single_rpc1 == 0 && |
| 585 | 584 | weight_single_wait1 == 0 && weight_many1 == 0 && weight_many_wait1 == 0 && |
| 586 | 585 | weight_all1 == 0 && weight_all_wait1 == 0) { |
| 587 | − VERBOSE_SCFTORTOUT_ERRSTRING("all zero weights makes no sense"); | |
| 586 | + SCFTORTOUT_ERRSTRING("all zero weights makes no sense"); | |
| 588 | 587 | firsterr = -EINVAL; |
| 589 | 588 | goto unwind; |
| 590 | 589 | } |
| 591 | 590 | if (IS_BUILTIN(CONFIG_SCF_TORTURE_TEST)) |
| 592 | 591 | scf_sel_add(weight_resched1, SCF_PRIM_RESCHED, false); |
| 593 | 592 | else if (weight_resched1) |
| 594 | − VERBOSE_SCFTORTOUT_ERRSTRING("built as module, weight_resched ignored"); | |
| 593 | + SCFTORTOUT_ERRSTRING("built as module, weight_resched ignored"); | |
| 595 | 594 | scf_sel_add(weight_single1, SCF_PRIM_SINGLE, false); |
| 596 | 595 | scf_sel_add(weight_single_rpc1, SCF_PRIM_SINGLE_RPC, true); |
| 597 | 596 | scf_sel_add(weight_single_wait1, SCF_PRIM_SINGLE, true); |
| @@ -622,7 +621,7 @@ static int __init scf_torture_init(void) · 24 unmodified lines | ||
| 622 | 621 | nthreads = num_online_cpus(); |
| 623 | 622 | scf_stats_p = kcalloc(nthreads, sizeof(scf_stats_p[0]), GFP_KERNEL); |
| 624 | 623 | if (!scf_stats_p) { |
| 625 | − VERBOSE_SCFTORTOUT_ERRSTRING("out of memory"); | |
| 624 | + SCFTORTOUT_ERRSTRING("out of memory"); | |
| 626 | 625 | firsterr = -ENOMEM; |
| 627 | 626 | goto unwind; |
| 628 | 627 | } |