Skip to content

Commit

Permalink
Fix up for "printk: Drop pr_warning definition"
Browse files Browse the repository at this point in the history
Link: http://lkml.kernel.org/r/[email protected]
Cc: Linux Next Mailing List <[email protected]>
Cc: Linux Kernel Mailing List <[email protected]>
Cc: "Steven Rostedt (VMware)" <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: Linus Torvalds <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
  • Loading branch information
sfrothwell authored and pmladek committed Dec 6, 2019
1 parent 1d9a615 commit ee19545
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -5070,7 +5070,7 @@ static __init int test_ringbuffer(void)
int ret = 0;

if (security_locked_down(LOCKDOWN_TRACEFS)) {
pr_warning("Lockdown is enabled, skipping ring buffer tests\n");
pr_warn("Lockdown is enabled, skipping ring buffer tests\n");
return 0;
}

Expand Down
6 changes: 3 additions & 3 deletions kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ int __init register_tracer(struct tracer *type)
}

if (security_locked_down(LOCKDOWN_TRACEFS)) {
pr_warning("Can not register tracer %s due to lockdown\n",
pr_warn("Can not register tracer %s due to lockdown\n",
type->name);
return -EPERM;
}
Expand Down Expand Up @@ -8796,7 +8796,7 @@ struct dentry *tracing_init_dentry(void)
struct trace_array *tr = &global_trace;

if (security_locked_down(LOCKDOWN_TRACEFS)) {
pr_warning("Tracing disabled due to lockdown\n");
pr_warn("Tracing disabled due to lockdown\n");
return ERR_PTR(-EPERM);
}

Expand Down Expand Up @@ -9244,7 +9244,7 @@ __init static int tracer_alloc_buffers(void)


if (security_locked_down(LOCKDOWN_TRACEFS)) {
pr_warning("Tracing disabled due to lockdown\n");
pr_warn("Tracing disabled due to lockdown\n");
return -EPERM;
}

Expand Down

0 comments on commit ee19545

Please sign in to comment.