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>
This commit is contained in:

committed by
Linus Torvalds

parent
729d8e093c
commit
0c118b7bd0
@@ -140,11 +140,8 @@ static int ics_rtas_set_affinity(struct irq_data *d,
|
||||
|
||||
irq_server = xics_get_irq_server(d->irq, cpumask, 1);
|
||||
if (irq_server == -1) {
|
||||
char cpulist[128];
|
||||
cpumask_scnprintf(cpulist, sizeof(cpulist), cpumask);
|
||||
printk(KERN_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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user