Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 710a0647 authored by Markus Elfring's avatar Markus Elfring Committed by Paul Moore
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 8ee4586c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1456,10 +1456,10 @@ static int sel_avc_stats_seq_show(struct seq_file *seq, void *v)
{
	struct avc_cache_stats *st = v;

	if (v == SEQ_START_TOKEN)
		seq_printf(seq, "lookups hits misses allocations reclaims "
			   "frees\n");
	else {
	if (v == SEQ_START_TOKEN) {
		seq_puts(seq,
			 "lookups hits misses allocations reclaims frees\n");
	} else {
		unsigned int lookups = st->lookups;
		unsigned int misses = st->misses;
		unsigned int hits = lookups - misses;