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:
b21a695
)
selinux: Cleanup printk logging in netport
author
peter enderborg
<peter.enderborg@sony.com>
Tue, 12 Jun 2018 08:09:09 +0000
(10:09 +0200)
committer
Paul Moore
<paul@paul-moore.com>
Tue, 19 Jun 2018 17:43:01 +0000
(13:43 -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/netport.c
patch
|
blob
|
history
diff --git
a/security/selinux/netport.c
b/security/selinux/netport.c
index 9ed4c5064a5e76b0458193743eee2c220e64e40a..7a141cadbffce87a842f82bd5eb8cec9c5343689 100644
(file)
--- a/
security/selinux/netport.c
+++ b/
security/selinux/netport.c
@@
-173,9
+173,8
@@
static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid)
out:
spin_unlock_bh(&sel_netport_lock);
if (unlikely(ret)) {
- printk(KERN_WARNING
- "SELinux: failure in sel_netport_sid_slow(),"
- " unable to determine network port label\n");
+ pr_warn("SELinux: failure in %s(), unable to determine network port label\n",
+ __func__);
kfree(new);
}
return ret;