File tree Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -302,9 +302,8 @@ extern int kptr_restrict;
302302 printk(KERN_CRIT pr_fmt(fmt), ##__VA_ARGS__)
303303#define pr_err (fmt , ...) \
304304 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
305- #define pr_warning (fmt , ...) \
305+ #define pr_warn (fmt , ...) \
306306 printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
307- #define pr_warn pr_warning
308307#define pr_notice (fmt , ...) \
309308 printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
310309#define pr_info (fmt , ...) \
Original file line number Diff line number Diff line change @@ -5070,7 +5070,7 @@ static __init int test_ringbuffer(void)
50705070 int ret = 0 ;
50715071
50725072 if (security_locked_down (LOCKDOWN_TRACEFS )) {
5073- pr_warning ("Lockdown is enabled, skipping ring buffer tests\n" );
5073+ pr_warn ("Lockdown is enabled, skipping ring buffer tests\n" );
50745074 return 0 ;
50755075 }
50765076
Original file line number Diff line number Diff line change @@ -1889,7 +1889,7 @@ int __init register_tracer(struct tracer *type)
18891889 }
18901890
18911891 if (security_locked_down (LOCKDOWN_TRACEFS )) {
1892- pr_warning ("Can not register tracer %s due to lockdown\n" ,
1892+ pr_warn ("Can not register tracer %s due to lockdown\n" ,
18931893 type -> name );
18941894 return - EPERM ;
18951895 }
@@ -8796,7 +8796,7 @@ struct dentry *tracing_init_dentry(void)
87968796 struct trace_array * tr = & global_trace ;
87978797
87988798 if (security_locked_down (LOCKDOWN_TRACEFS )) {
8799- pr_warning ("Tracing disabled due to lockdown\n" );
8799+ pr_warn ("Tracing disabled due to lockdown\n" );
88008800 return ERR_PTR (- EPERM );
88018801 }
88028802
@@ -9244,7 +9244,7 @@ __init static int tracer_alloc_buffers(void)
92449244
92459245
92469246 if (security_locked_down (LOCKDOWN_TRACEFS )) {
9247- pr_warning ("Tracing disabled due to lockdown\n" );
9247+ pr_warn ("Tracing disabled due to lockdown\n" );
92489248 return - EPERM ;
92499249 }
92509250
Original file line number Diff line number Diff line change @@ -4374,8 +4374,8 @@ void destroy_workqueue(struct workqueue_struct *wq)
43744374 for_each_pwq (pwq , wq ) {
43754375 spin_lock_irq (& pwq -> pool -> lock );
43764376 if (WARN_ON (pwq_busy (pwq ))) {
4377- pr_warning ("%s: %s has the following busy pwq\n" ,
4378- __func__ , wq -> name );
4377+ pr_warn ("%s: %s has the following busy pwq\n" ,
4378+ __func__ , wq -> name );
43794379 show_pwq (pwq );
43804380 spin_unlock_irq (& pwq -> pool -> lock );
43814381 mutex_unlock (& wq -> mutex );
Original file line number Diff line number Diff line change @@ -4125,15 +4125,6 @@ sub process {
41254125 " Prefer [subsystem eg: netdev]_$level2 ([subsystem]dev, ... then dev_$level2 (dev, ... then pr_$level (... to printk(KERN_$orig ...\n " . $herecurr );
41264126 }
41274127
4128- if ($line =~ / \b pr_warning\s *\( / ) {
4129- if (WARN(" PREFER_PR_LEVEL" ,
4130- " Prefer pr_warn(... to pr_warning(...\n " . $herecurr ) &&
4131- $fix ) {
4132- $fixed [$fixlinenr ] =~
4133- s /\b pr_warning\b / pr_warn/ ;
4134- }
4135- }
4136-
41374128 if ($line =~ / \b dev_printk\s *\(\s *KERN_([A-Z]+)/ ) {
41384129 my $orig = $1 ;
41394130 my $level = lc ($orig );
You can’t perform that action at this time.
0 commit comments