]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selinux: Cleanup printk logging in avc
authorpeter enderborg <peter.enderborg@sony.com>
Tue, 12 Jun 2018 08:09:11 +0000 (10:09 +0200)
committerPaul Moore <paul@paul-moore.com>
Tue, 19 Jun 2018 17:47:13 +0000 (13:47 -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/avc.c

index f3aedf0775096108dc2dc5a72c522f2ff6d74cd8..635e5c1e3e48ff90c491b3d7376e95b01669715b 100644 (file)
@@ -650,7 +650,7 @@ static int avc_latest_notif_update(struct selinux_avc *avc,
        spin_lock_irqsave(&notif_lock, flag);
        if (is_insert) {
                if (seqno < avc->avc_cache.latest_notif) {
-                       printk(KERN_WARNING "SELinux: avc:  seqno %d < latest_notif %d\n",
+                       pr_warn("SELinux: avc:  seqno %d < latest_notif %d\n",
                               seqno, avc->avc_cache.latest_notif);
                        ret = -EAGAIN;
                }