Commit b21a695d authored by peter enderborg's avatar peter enderborg Committed by Paul Moore

selinux: Cleanup printk logging in sidtab

Replace printk with pr_* to avoid checkpatch warnings.
Signed-off-by: default avatarPeter Enderborg <peter.enderborg@sony.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent d85a7833
...@@ -214,8 +214,7 @@ int sidtab_context_to_sid(struct sidtab *s, ...@@ -214,8 +214,7 @@ int sidtab_context_to_sid(struct sidtab *s,
} }
sid = s->next_sid++; sid = s->next_sid++;
if (context->len) if (context->len)
printk(KERN_INFO pr_info("SELinux: Context %s is not valid (left unmapped).\n",
"SELinux: Context %s is not valid (left unmapped).\n",
context->str); context->str);
ret = sidtab_insert(s, sid, context); ret = sidtab_insert(s, sid, context);
if (ret) if (ret)
...@@ -253,7 +252,7 @@ void sidtab_hash_eval(struct sidtab *h, char *tag) ...@@ -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, "chain length %d\n", tag, h->nel, slots_used, SIDTAB_SIZE,
max_chain_len); max_chain_len);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment