x86: use %*pb[l] to print bitmaps including cpumasks and nodemasks
[deliverable/linux.git] / arch / x86 / mm / numa.c
index 1a883705a12a8a12410914be93b2ee65807cc423..cd4785bbacb9a86366ccd74121e5161b078e9596 100644 (file)
@@ -794,7 +794,6 @@ int early_cpu_to_node(int cpu)
 void debug_cpumask_set_cpu(int cpu, int node, bool enable)
 {
        struct cpumask *mask;
-       char buf[64];
 
        if (node == NUMA_NO_NODE) {
                /* early_cpu_to_node() already emits a warning and trace */
@@ -812,10 +811,9 @@ void debug_cpumask_set_cpu(int cpu, int node, bool enable)
        else
                cpumask_clear_cpu(cpu, mask);
 
-       cpulist_scnprintf(buf, sizeof(buf), mask);
-       printk(KERN_DEBUG "%s cpu %d node %d: mask now %s\n",
+       printk(KERN_DEBUG "%s cpu %d node %d: mask now %*pbl\n",
                enable ? "numa_add_cpu" : "numa_remove_cpu",
-               cpu, node, buf);
+               cpu, node, cpumask_pr_args(mask));
        return;
 }
 
This page took 0.03747 seconds and 5 git commands to generate.