diff options
author | Joe Perches <joe@perches.com> | 2016-03-17 17:19:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-17 18:09:34 -0400 |
commit | 1170532bb49f9468aedabdc1d5a560e2521a2bcc (patch) | |
tree | 0197245ba37726d4ba7325e0de8129d45f8f49d9 /mm/percpu.c | |
parent | 756a025f00091918d9d09ca3229defb160b409c0 (diff) |
mm: convert printk(KERN_<LEVEL> to pr_<level>
Most of the mm subsystem uses pr_<level> so make it consistent.
Miscellanea:
- Realign arguments
- Add missing newline to format
- kmemleak-test.c has a "kmemleak: " prefix added to the
"Kmemleak testing" logging message via pr_fmt
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Tejun Heo <tj@kernel.org> [percpu]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/percpu.c')
-rw-r--r-- | mm/percpu.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 1571547e7b01..c987fd4d539d 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
@@ -1449,20 +1449,20 @@ static void pcpu_dump_alloc_info(const char *lvl, | |||
1449 | for (alloc_end += gi->nr_units / upa; | 1449 | for (alloc_end += gi->nr_units / upa; |
1450 | alloc < alloc_end; alloc++) { | 1450 | alloc < alloc_end; alloc++) { |
1451 | if (!(alloc % apl)) { | 1451 | if (!(alloc % apl)) { |
1452 | printk(KERN_CONT "\n"); | 1452 | pr_cont("\n"); |
1453 | printk("%spcpu-alloc: ", lvl); | 1453 | printk("%spcpu-alloc: ", lvl); |
1454 | } | 1454 | } |
1455 | printk(KERN_CONT "[%0*d] ", group_width, group); | 1455 | pr_cont("[%0*d] ", group_width, group); |
1456 | 1456 | ||
1457 | for (unit_end += upa; unit < unit_end; unit++) | 1457 | for (unit_end += upa; unit < unit_end; unit++) |
1458 | if (gi->cpu_map[unit] != NR_CPUS) | 1458 | if (gi->cpu_map[unit] != NR_CPUS) |
1459 | printk(KERN_CONT "%0*d ", cpu_width, | 1459 | pr_cont("%0*d ", |
1460 | gi->cpu_map[unit]); | 1460 | cpu_width, gi->cpu_map[unit]); |
1461 | else | 1461 | else |
1462 | printk(KERN_CONT "%s ", empty_str); | 1462 | pr_cont("%s ", empty_str); |
1463 | } | 1463 | } |
1464 | } | 1464 | } |
1465 | printk(KERN_CONT "\n"); | 1465 | pr_cont("\n"); |
1466 | } | 1466 | } |
1467 | 1467 | ||
1468 | /** | 1468 | /** |