mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
selinux: Cleanup printk logging in sidtab
Replace printk with pr_* to avoid checkpatch warnings. Signed-off-by: Peter Enderborg <[email protected]> Signed-off-by: Paul Moore <[email protected]>
This commit is contained in:
parent
d85a78334e
commit
b21a695d9c
1 changed files with 2 additions and 3 deletions
|
|
@ -214,8 +214,7 @@ int sidtab_context_to_sid(struct sidtab *s,
|
|||
}
|
||||
sid = s->next_sid++;
|
||||
if (context->len)
|
||||
printk(KERN_INFO
|
||||
"SELinux: Context %s is not valid (left unmapped).\n",
|
||||
pr_info("SELinux: Context %s is not valid (left unmapped).\n",
|
||||
context->str);
|
||||
ret = sidtab_insert(s, sid, context);
|
||||
if (ret)
|
||||
|
|
@ -253,7 +252,7 @@ void sidtab_hash_eval(struct sidtab *h, char *tag)
|
|||
}
|
||||
}
|
||||
|
||||
printk(KERN_DEBUG "%s: %d entries and %d/%d buckets used, longest "
|
||||
pr_debug("%s: %d entries and %d/%d buckets used, longest "
|
||||
"chain length %d\n", tag, h->nel, slots_used, SIDTAB_SIZE,
|
||||
max_chain_len);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue