summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter enderborg <peter.enderborg@sony.com>2018-06-12 10:09:11 +0200
committerPaul Moore <paul@paul-moore.com>2018-06-19 19:47:13 +0200
commit07c81ac2adccbdfe8cc48fe4ad347cd37520c504 (patch)
treeb18e1b55a8a86ae0aaeddd24e65f8636ce8fdb67
parentselinux: Cleanup printk logging in netif (diff)
downloadlinux-07c81ac2adccbdfe8cc48fe4ad347cd37520c504.tar.xz
linux-07c81ac2adccbdfe8cc48fe4ad347cd37520c504.zip
selinux: Cleanup printk logging in avc
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>
-rw-r--r--security/selinux/avc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c
index f3aedf077509..635e5c1e3e48 100644
--- a/security/selinux/avc.c
+++ b/security/selinux/avc.c
@@ -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;
}