Staging: vchiq_arm: Using pr_err and pr_notice instead of printk
authorNguyen Dinh Phi <phind.uet@gmail.com>
Wed, 12 May 2021 18:44:40 +0000 (02:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 18:06:45 +0000 (20:06 +0200)
This patch fixes the following checkpatch.pl warning:
fix Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then
dev_info(dev, ... then pr_info(...  to printk(KERN_INFO ...

Signed-off-by: Nguyen Dinh Phi <phind.uet@gmail.com>
Link: https://lore.kernel.org/r/20210512184440.550116-1-phind.uet@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

index 1b13568..ee759cb 100644 (file)
@@ -2192,10 +2192,10 @@ vchiq_get_state(void)
 {
 
        if (!g_state.remote)
-               printk(KERN_ERR "%s: g_state.remote == NULL\n", __func__);
+               pr_err("%s: g_state.remote == NULL\n", __func__);
        else if (g_state.remote->initialised != 1)
-               printk(KERN_NOTICE "%s: g_state.remote->initialised != 1 (%d)\n",
-                       __func__, g_state.remote->initialised);
+               pr_notice("%s: g_state.remote->initialised != 1 (%d)\n",
+                         __func__, g_state.remote->initialised);
 
        return (g_state.remote &&
                (g_state.remote->initialised == 1)) ? &g_state : NULL;