mm: percpu: use pr_fmt to prefix output

Use the normal mechanism to make the logging output consistently
"percpu:" instead of a mix of "PERCPU:" and "percpu:"

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Joe Perches 2016-03-17 14:19:53 -07:00 • committed by Linus Torvalds
commit 870d4b12ad
2 changed files with 13 additions and 11 deletions

View file

@ -95,7 +95,7 @@ static int __init pcpu_verify_alloc_info(const struct pcpu_alloc_info *ai)
/* all units must be in a single group */
if (ai->nr_groups != 1) {
pr_crit("percpu: can't handle more than one groups\n");
pr_crit("can't handle more than one group\n");
return -EINVAL;
}
@ -103,7 +103,7 @@ static int __init pcpu_verify_alloc_info(const struct pcpu_alloc_info *ai)
alloc_pages = roundup_pow_of_two(nr_pages);
if (alloc_pages > nr_pages)
pr_warn("percpu: wasting %zu pages per chunk\n",
pr_warn("wasting %zu pages per chunk\n",
alloc_pages - nr_pages);
return 0;