powerpc: Add printk levels to powernv platform code
authorAnton Blanchard <anton@samba.org>
Wed, 17 Sep 2014 04:39:38 +0000 (14:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 Oct 2014 07:33:55 +0000 (17:33 +1000)
Add printk levels to powernv platform code, and convert to
pr_err() etc while here.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-nvram.c
arch/powerpc/platforms/powernv/opal.c

index acd9f7e96678256e2620b24494fded8e90b08ebb..f9896fd5d04afa1acc62f6ca6e82e25edce65d85 100644 (file)
@@ -78,7 +78,7 @@ void __init opal_nvram_init(void)
        }
        nvram_size = be32_to_cpup(nbytes_p);
 
-       printk(KERN_INFO "OPAL nvram setup, %u bytes\n", nvram_size);
+       pr_info("OPAL nvram setup, %u bytes\n", nvram_size);
        of_node_put(np);
 
        ppc_md.nvram_read = opal_nvram_read;
index b44eec3e8dbd8dbfb43873af73f006d20081b314..cf85ba86bf5eb8c727e2de88b56cdeabc64086d1 100644 (file)
@@ -105,12 +105,12 @@ int __init early_init_dt_scan_opal(unsigned long node,
        if (of_flat_dt_is_compatible(node, "ibm,opal-v3")) {
                powerpc_firmware_features |= FW_FEATURE_OPALv2;
                powerpc_firmware_features |= FW_FEATURE_OPALv3;
-               printk("OPAL V3 detected !\n");
+               pr_info("OPAL V3 detected !\n");
        } else if (of_flat_dt_is_compatible(node, "ibm,opal-v2")) {
                powerpc_firmware_features |= FW_FEATURE_OPALv2;
-               printk("OPAL V2 detected !\n");
+               pr_info("OPAL V2 detected !\n");
        } else {
-               printk("OPAL V1 detected !\n");
+               pr_info("OPAL V1 detected !\n");
        }
 
        /* Reinit all cores with the right endian */