cpumask_scnprintf(buf, ARRAY_SIZE(buf), cpu_possible_mask);
        pr_info("Possible CPU mask: %s\n", buf);
 
-       /* check with the cores we have worken up */
+       /* check with the cores we have woken up */
        for (ncore = 0, i = 0; i < NLM_NR_NODES; i++)
                ncore += hweight32(nlm_get_node(i)->coremask);
 
 {
        uint32_t core0_thr_mask, core_thr_mask;
        int threadmode, i, j;
+       char buf[64];
 
        core0_thr_mask = 0;
        for (i = 0; i < NLM_THREADS_PER_CORE; i++)
        return threadmode;
 
 unsupp:
-       panic("Unsupported CPU mask %lx",
-               (unsigned long)cpumask_bits(wakeup_mask)[0]);
+       cpumask_scnprintf(buf, ARRAY_SIZE(buf), wakeup_mask);
+       panic("Unsupported CPU mask %s", buf);
        return 0;
 }