mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
Staging: vchiq_arm: Using pr_err and pr_notice instead of printk
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>
This commit is contained in:
parent
76dfbca475
commit
56a1c5cc8a
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue