diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-01-15 16:04:53 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-03-29 18:52:30 +0300 |
commit | 710a0647ba955abd25460c36a09d80fdbe878273 (patch) | |
tree | 3c12a72d15d1e9390c847bbcd340190483330ab6 /security/selinux/selinuxfs.c | |
parent | 8ee4586ca5fe6c2a00f6a39f828f54c8f6cda472 (diff) | |
download | linux-710a0647ba955abd25460c36a09d80fdbe878273.tar.xz |
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>
Diffstat (limited to 'security/selinux/selinuxfs.c')
-rw-r--r-- | security/selinux/selinuxfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index cb3fd98fb05a..ce7171884223 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -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; |