summaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/xics/ics-opal.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2015-02-14 01:37:06 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-14 08:21:36 +0300
commit0c118b7bd09a1d11731ba80421a34ea1105c5b21 (patch)
treebe234b03db60a78d856fb4c947d3424dcaf44e73 /arch/powerpc/sysdev/xics/ics-opal.c
parent729d8e093c3ec5c662965c97accd882a75b0f93a (diff)
downloadlinux-0c118b7bd09a1d11731ba80421a34ea1105c5b21.tar.xz
powerpc: use %*pb[l] to print bitmaps including cpumasks and nodemasks
printk and friends can now format bitmaps using '%*pb[l]'. cpumask and nodemask also provide cpumask_pr_args() and nodemask_pr_args() respectively which can be used to generate the two printf arguments necessary to format the specified cpu/nodemask. * Spurious if (len > 1) test dropped from shared_cpu_map_show(). Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc/sysdev/xics/ics-opal.c')
-rw-r--r--arch/powerpc/sysdev/xics/ics-opal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/sysdev/xics/ics-opal.c b/arch/powerpc/sysdev/xics/ics-opal.c
index 4ba554ec8eaf..68c7e5cc98e0 100644
--- a/arch/powerpc/sysdev/xics/ics-opal.c
+++ b/arch/powerpc/sysdev/xics/ics-opal.c
@@ -131,10 +131,8 @@ static int ics_opal_set_affinity(struct irq_data *d,
wanted_server = xics_get_irq_server(d->irq, cpumask, 1);
if (wanted_server < 0) {
- char cpulist[128];
- cpumask_scnprintf(cpulist, sizeof(cpulist), cpumask);
- pr_warning("%s: No online cpus in the mask %s for irq %d\n",
- __func__, cpulist, d->irq);
+ pr_warning("%s: No online cpus in the mask %*pb for irq %d\n",
+ __func__, cpumask_pr_args(cpumask), d->irq);
return -1;
}
server = ics_opal_mangle_server(wanted_server);