mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
selinuxfs: Use seq_puts() in sel_avc_stats_seq_show()
A string which did not contain data format specifications should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
8ee4586ca5
commit
710a0647ba
1 changed files with 4 additions and 4 deletions
|
@ -1456,10 +1456,10 @@ static int sel_avc_stats_seq_show(struct seq_file *seq, void *v)
|
||||||
{
|
{
|
||||||
struct avc_cache_stats *st = v;
|
struct avc_cache_stats *st = v;
|
||||||
|
|
||||||
if (v == SEQ_START_TOKEN)
|
if (v == SEQ_START_TOKEN) {
|
||||||
seq_printf(seq, "lookups hits misses allocations reclaims "
|
seq_puts(seq,
|
||||||
"frees\n");
|
"lookups hits misses allocations reclaims frees\n");
|
||||||
else {
|
} else {
|
||||||
unsigned int lookups = st->lookups;
|
unsigned int lookups = st->lookups;
|
||||||
unsigned int misses = st->misses;
|
unsigned int misses = st->misses;
|
||||||
unsigned int hits = lookups - misses;
|
unsigned int hits = lookups - misses;
|
||||||
|
|
Loading…
Reference in a new issue