m68k/mm: Modernize printing of kernel messages
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 6 Dec 2016 18:47:39 +0000 (19:47 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 12 Feb 2017 09:36:53 +0000 (10:36 +0100)
Convert from printk() to pr_*().

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/mm/init.c
arch/m68k/mm/memory.c

index 9c1e656b1f8f581727daf981a1d747beb88d1651..a6ffead9bef5df15cfc0f473f0be2cc853f4cf80 100644 (file)
@@ -66,7 +66,7 @@ void __init m68k_setup_node(int node)
        end = (unsigned long)phys_to_virt(info->addr + info->size - 1) >> __virt_to_node_shift();
        for (; i <= end; i++) {
                if (pg_data_table[i])
-                       printk("overlap at %u for chunk %u\n", i, node);
+                       pr_warn("overlap at %u for chunk %u\n", i, node);
                pg_data_table[i] = pg_data_map + node;
        }
 #endif
index 51bc9d258ede39b8e9dd244b2a493974ed6ed552..4902b681a9fccf3f1cfa7db758e8054c67ad441e 100644 (file)
@@ -47,9 +47,7 @@ void __init init_pointer_table(unsigned long ptable)
        }
 
        PD_MARKBITS(dp) &= ~mask;
-#ifdef DEBUG
-       printk("init_pointer_table: %lx, %x\n", ptable, PD_MARKBITS(dp));
-#endif
+       pr_debug("init_pointer_table: %lx, %x\n", ptable, PD_MARKBITS(dp));
 
        /* unreserve the page so it's possible to free that page */
        PD_PAGE(dp)->flags &= ~(1 << PG_reserved);