aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree_trace.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-05-17 18:12:45 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-07-06 09:01:49 -0400
commit5cf05ad758c30d17ff23c2be346b5de982bc2121 (patch)
tree884adcc248b81628ffea41916655d41efb934042 /kernel/rcutree_trace.c
parentc701d5d9b384ff03ceb232ef21236364d784a411 (diff)
rcu: Fix broken strings in RCU's source code.
Although the C language allows you to break strings across lines, doing this makes it hard for people to find the Linux kernel code corresponding to a given console message. This commit therefore fixes broken strings throughout RCU's source code. Suggested-by: Josh Triplett <josh@joshtriplett.org> Suggested-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree_trace.c')
-rw-r--r--kernel/rcutree_trace.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/kernel/rcutree_trace.c b/kernel/rcutree_trace.c
index a16ddbd6fdc4..abffb486e94e 100644
--- a/kernel/rcutree_trace.c
+++ b/kernel/rcutree_trace.c
@@ -218,8 +218,7 @@ static const struct file_operations rcudata_csv_fops = {
218 218
219static void print_one_rcu_node_boost(struct seq_file *m, struct rcu_node *rnp) 219static void print_one_rcu_node_boost(struct seq_file *m, struct rcu_node *rnp)
220{ 220{
221 seq_printf(m, "%d:%d tasks=%c%c%c%c kt=%c ntb=%lu neb=%lu nnb=%lu " 221 seq_printf(m, "%d:%d tasks=%c%c%c%c kt=%c ntb=%lu neb=%lu nnb=%lu ",
222 "j=%04x bt=%04x\n",
223 rnp->grplo, rnp->grphi, 222 rnp->grplo, rnp->grphi,
224 "T."[list_empty(&rnp->blkd_tasks)], 223 "T."[list_empty(&rnp->blkd_tasks)],
225 "N."[!rnp->gp_tasks], 224 "N."[!rnp->gp_tasks],
@@ -227,11 +226,11 @@ static void print_one_rcu_node_boost(struct seq_file *m, struct rcu_node *rnp)
227 "B."[!rnp->boost_tasks], 226 "B."[!rnp->boost_tasks],
228 convert_kthread_status(rnp->boost_kthread_status), 227 convert_kthread_status(rnp->boost_kthread_status),
229 rnp->n_tasks_boosted, rnp->n_exp_boosts, 228 rnp->n_tasks_boosted, rnp->n_exp_boosts,
230 rnp->n_normal_boosts, 229 rnp->n_normal_boosts);
230 seq_printf(m, "j=%04x bt=%04x\n",
231 (int)(jiffies & 0xffff), 231 (int)(jiffies & 0xffff),
232 (int)(rnp->boost_time & 0xffff)); 232 (int)(rnp->boost_time & 0xffff));
233 seq_printf(m, "%s: nt=%lu egt=%lu bt=%lu nb=%lu ny=%lu nos=%lu\n", 233 seq_printf(m, " balk: nt=%lu egt=%lu bt=%lu nb=%lu ny=%lu nos=%lu\n",
234 " balk",
235 rnp->n_balk_blkd_tasks, 234 rnp->n_balk_blkd_tasks,
236 rnp->n_balk_exp_gp_tasks, 235 rnp->n_balk_exp_gp_tasks,
237 rnp->n_balk_boost_tasks, 236 rnp->n_balk_boost_tasks,
@@ -287,11 +286,11 @@ static void print_one_rcu_state(struct seq_file *m, struct rcu_state *rsp)
287 struct rcu_node *rnp; 286 struct rcu_node *rnp;
288 287
289 gpnum = rsp->gpnum; 288 gpnum = rsp->gpnum;
290 seq_printf(m, "%s: c=%lu g=%lu s=%d jfq=%ld j=%x " 289 seq_printf(m, "%s: c=%lu g=%lu s=%d jfq=%ld j=%x ",
291 "nfqs=%lu/nfqsng=%lu(%lu) fqlh=%lu oqlen=%ld/%ld\n",
292 rsp->name, rsp->completed, gpnum, rsp->fqs_state, 290 rsp->name, rsp->completed, gpnum, rsp->fqs_state,
293 (long)(rsp->jiffies_force_qs - jiffies), 291 (long)(rsp->jiffies_force_qs - jiffies),
294 (int)(jiffies & 0xffff), 292 (int)(jiffies & 0xffff));
293 seq_printf(m, "nfqs=%lu/nfqsng=%lu(%lu) fqlh=%lu oqlen=%ld/%ld\n",
295 rsp->n_force_qs, rsp->n_force_qs_ngp, 294 rsp->n_force_qs, rsp->n_force_qs_ngp,
296 rsp->n_force_qs - rsp->n_force_qs_ngp, 295 rsp->n_force_qs - rsp->n_force_qs_ngp,
297 rsp->n_force_qs_lh, rsp->qlen_lazy, rsp->qlen); 296 rsp->n_force_qs_lh, rsp->qlen_lazy, rsp->qlen);
@@ -378,16 +377,16 @@ static const struct file_operations rcugp_fops = {
378 377
379static void print_one_rcu_pending(struct seq_file *m, struct rcu_data *rdp) 378static void print_one_rcu_pending(struct seq_file *m, struct rcu_data *rdp)
380{ 379{
381 seq_printf(m, "%3d%cnp=%ld " 380 seq_printf(m, "%3d%cnp=%ld ",
382 "qsp=%ld rpq=%ld cbr=%ld cng=%ld "
383 "gpc=%ld gps=%ld nf=%ld nn=%ld\n",
384 rdp->cpu, 381 rdp->cpu,
385 cpu_is_offline(rdp->cpu) ? '!' : ' ', 382 cpu_is_offline(rdp->cpu) ? '!' : ' ',
386 rdp->n_rcu_pending, 383 rdp->n_rcu_pending);
384 seq_printf(m, "qsp=%ld rpq=%ld cbr=%ld cng=%ld ",
387 rdp->n_rp_qs_pending, 385 rdp->n_rp_qs_pending,
388 rdp->n_rp_report_qs, 386 rdp->n_rp_report_qs,
389 rdp->n_rp_cb_ready, 387 rdp->n_rp_cb_ready,
390 rdp->n_rp_cpu_needs_gp, 388 rdp->n_rp_cpu_needs_gp);
389 seq_printf(m, "gpc=%ld gps=%ld nf=%ld nn=%ld\n",
391 rdp->n_rp_gp_completed, 390 rdp->n_rp_gp_completed,
392 rdp->n_rp_gp_started, 391 rdp->n_rp_gp_started,
393 rdp->n_rp_need_fqs, 392 rdp->n_rp_need_fqs,