mc_panic("MCE: No CPU found valid MCE, need reset");
if ( !cpumask_empty(&mce_fatal_cpus) )
{
- char *ebufp, ebuf[96] = "MCE: Fatal error happened on CPUs ";
- ebufp = ebuf + strlen(ebuf);
- cpumask_scnprintf(ebufp, 95 - strlen(ebuf), &mce_fatal_cpus);
+ char ebuf[96];
+
+ snprintf(ebuf, sizeof(ebuf),
+ "MCE: Fatal error happened on CPUs %*pb",
+ nr_cpu_ids, cpumask_bits(&mce_fatal_cpus));
+
mc_panic(ebuf);
}
atomic_set(&found_error, 0);
if ( cpumask_empty(&waiting_to_crash) )
printk("Shot down all CPUs\n");
else
- {
- cpulist_scnprintf(keyhandler_scratch, sizeof keyhandler_scratch,
- &waiting_to_crash);
- printk("Failed to shoot down CPUs {%s}\n", keyhandler_scratch);
- }
+ printk("Failed to shoot down CPUs {%*pbl}\n",
+ nr_cpu_ids, cpumask_bits(&waiting_to_crash));
/* Crash shutdown any IOMMU functionality as the crashdump kernel is not
* happy when booting if interrupt/dma remapping is still enabled */
spin_lock_irqsave(&desc->lock, flags);
- cpumask_scnprintf(keyhandler_scratch, sizeof(keyhandler_scratch),
- desc->affinity);
- printk(" IRQ:%4d affinity:%s vec:%02x type=%-15s"
- " status=%08x ",
- irq, keyhandler_scratch, desc->arch.vector,
+ printk(" IRQ:%4d affinity:%*pb vec:%02x type=%-15s status=%08x ",
+ irq, nr_cpu_ids, cpumask_bits(desc->affinity), desc->arch.vector,
desc->handler->typename, desc->status);
if ( ssid )