Commit d7f3e207 authored by Paul E. McKenney's avatar Paul E. McKenney

rcu: Convert rcutree.c printk calls

This commit converts printk() calls to the corresponding pr_*() calls.
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
parent 971394f3
...@@ -866,7 +866,7 @@ static void print_other_cpu_stall(struct rcu_state *rsp) ...@@ -866,7 +866,7 @@ static void print_other_cpu_stall(struct rcu_state *rsp)
* See Documentation/RCU/stallwarn.txt for info on how to debug * See Documentation/RCU/stallwarn.txt for info on how to debug
* RCU CPU stall warnings. * RCU CPU stall warnings.
*/ */
printk(KERN_ERR "INFO: %s detected stalls on CPUs/tasks:", pr_err("INFO: %s detected stalls on CPUs/tasks:",
rsp->name); rsp->name);
print_cpu_stall_info_begin(); print_cpu_stall_info_begin();
rcu_for_each_leaf_node(rsp, rnp) { rcu_for_each_leaf_node(rsp, rnp) {
...@@ -899,7 +899,7 @@ static void print_other_cpu_stall(struct rcu_state *rsp) ...@@ -899,7 +899,7 @@ static void print_other_cpu_stall(struct rcu_state *rsp)
smp_processor_id(), (long)(jiffies - rsp->gp_start), smp_processor_id(), (long)(jiffies - rsp->gp_start),
rsp->gpnum, rsp->completed, totqlen); rsp->gpnum, rsp->completed, totqlen);
if (ndetected == 0) if (ndetected == 0)
printk(KERN_ERR "INFO: Stall ended before state dump start\n"); pr_err("INFO: Stall ended before state dump start\n");
else if (!trigger_all_cpu_backtrace()) else if (!trigger_all_cpu_backtrace())
rcu_dump_cpu_stacks(rsp); rcu_dump_cpu_stacks(rsp);
...@@ -922,7 +922,7 @@ static void print_cpu_stall(struct rcu_state *rsp) ...@@ -922,7 +922,7 @@ static void print_cpu_stall(struct rcu_state *rsp)
* See Documentation/RCU/stallwarn.txt for info on how to debug * See Documentation/RCU/stallwarn.txt for info on how to debug
* RCU CPU stall warnings. * RCU CPU stall warnings.
*/ */
printk(KERN_ERR "INFO: %s self-detected stall on CPU", rsp->name); pr_err("INFO: %s self-detected stall on CPU", rsp->name);
print_cpu_stall_info_begin(); print_cpu_stall_info_begin();
print_cpu_stall_info(rsp, smp_processor_id()); print_cpu_stall_info(rsp, smp_processor_id());
print_cpu_stall_info_end(); print_cpu_stall_info_end();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment