selinux: Cleanup printk logging in netnode
authorpeter enderborg <peter.enderborg@sony.com>
Tue, 12 Jun 2018 08:09:12 +0000 (10:09 +0200)
committerPaul Moore <paul@paul-moore.com>
Tue, 19 Jun 2018 17:49:10 +0000 (13:49 -0400)
Replace printk with pr_* to avoid checkpatch warnings.

Signed-off-by: Peter Enderborg <peter.enderborg@sony.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/netnode.c

index 6dd89b89bc1f6f2fa8cad39b567d18e93ef5e2b9..afa0d432436b0bbd0b8c5bc598377e91b63a285e 100644 (file)
@@ -238,9 +238,8 @@ static int sel_netnode_sid_slow(void *addr, u16 family, u32 *sid)
 out:
        spin_unlock_bh(&sel_netnode_lock);
        if (unlikely(ret)) {
-               printk(KERN_WARNING
-                      "SELinux: failure in sel_netnode_sid_slow(),"
-                      " unable to determine network node label\n");
+               pr_warn("SELinux: failure in %s(), unable to determine network node label\n",
+                       __func__);
                kfree(new);
        }
        return ret;