projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07c81ac
)
selinux: Cleanup printk logging in netnode
author
peter enderborg
<peter.enderborg@sony.com>
Tue, 12 Jun 2018 08:09:12 +0000
(10:09 +0200)
committer
Paul 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
patch
|
blob
|
history
diff --git
a/security/selinux/netnode.c
b/security/selinux/netnode.c
index 6dd89b89bc1f6f2fa8cad39b567d18e93ef5e2b9..afa0d432436b0bbd0b8c5bc598377e91b63a285e 100644
(file)
--- a/
security/selinux/netnode.c
+++ b/
security/selinux/netnode.c
@@
-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;