From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751439AbdAOPqg (ORCPT ); Sun, 15 Jan 2017 10:46:36 -0500 Received: from mout.web.de ([212.227.17.11]:63217 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751098AbdAOPqe (ORCPT ); Sun, 15 Jan 2017 10:46:34 -0500 Subject: [PATCH 46/46] selinuxfs: Use seq_puts() in sel_avc_stats_seq_show() To: linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov, Eric Paris , James Morris , Paul Moore , "Serge E. Hallyn" , Stephen Smalley , William Roberts References: Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <9c268e0b-a323-5f72-e445-dbf247f274d8@users.sourceforge.net> Date: Sun, 15 Jan 2017 16:46:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:6ZKdpJ4I1kx9cLLhoRLxXdKZhL+nVQH3/E4xI7k03+mg44o4XRL SxjqE/HNM8v+bPG/AuZFxg/nT6u2AIni0VrNNucpnxf9jaotwubjCmsJhTzICY/eGqyX3uc nPafvwYeljy7kXRyXNJr56Be6VmspnwWlS8b78oF21cQiGY0q7zyjQYkSygOm05gC1KkouV UlnGu4csr6EEaptnxWuWg== X-UI-Out-Filterresults: notjunk:1;V01:K0:NOv4dUZmsFQ=:/z0W5RNn2n7dqaDafrlO35 BXEEWSiBEf6gKhw5us+uUMLSPSG7hz3tSpZELzrVbvJoO55iMSbnCp52hA0vlHpo3xpAwSdoW cfUa95P4LACfZe4L2L03MXk6onqQpfwa83eWEIcPeVZKnJ24HzEwjf1a+udYeFfo3VsHz8+NV U8mIp2TkNhFroUkB7yJnOMsTbKN56OPQpnDCOTFSp8IOlC+IrL2F0X5dVhqNtEHBgprXktAsR q0cZ4K8JRcqKg9NBtIaiSxVEg9WmIdLZG0jlCF08x/tn90uZy0PSDNnGIIziIT7EyzwX7dcXp wRIbLeFrb+YuVCCY1UM+Oa/Y0+xZWMGT4ZZY3i6N85Cen5Kkz7BAGe98gEMNRAv3dX4TJ9NqR NdQjSfTjgrBrOVkai4NHtCLQcVbYeLSaZAIH3CppKzjoftGSyou/UfWNHRGGAjtBcdbQr+c/5 OZxPaAMPiwJy5sHHRP0WVQ01zbf1rBUyKvL6WucSu4IvIPN5L0J79y+EKNWxCvFvikdcZKBSW IuazqjuVoDm+8CZhJrZP6BxolX0diRbsIsz31JDm3Aiu8+iXRlih6VyKXlnncmIlmpJbq3t/h rQqpgRflkYMSfTjXfVOGdrHOyJp4e2iYp8R3zkRNE0JEOh7iC0rVTbaiytQ2gRcbprg6iNgly IK9lDPMv4hmSf2PjPmN5GOMdEMxsP5OpqhyMvF2MMJ4O+so72i5OWSMgqcm9nqxC5XLskBXfN 9WinY0ZYy58qUSzhdkGq4mco/QwTt6o7Kg9bjKhtWwa7WY43PX4FwAvFYOBIGPe+xw2bh9dPC 7XA1RjW Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sun, 15 Jan 2017 14:04:53 +0100 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 --- security/selinux/selinuxfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index 55345f84f17d..0d81ebf7ff23 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -1445,10 +1445,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; -- 2.11.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Sun, 15 Jan 2017 15:46:07 +0000 Subject: [PATCH 46/46] selinuxfs: Use seq_puts() in sel_avc_stats_seq_show() Message-Id: <9c268e0b-a323-5f72-e445-dbf247f274d8@users.sourceforge.net> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov, Eric Paris , James Morris , Paul Moore , "Serge E. Hallyn" , Stephen Smalley , William Roberts Cc: LKML , kernel-janitors@vger.kernel.org From: Markus Elfring Date: Sun, 15 Jan 2017 14:04:53 +0100 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 --- security/selinux/selinuxfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index 55345f84f17d..0d81ebf7ff23 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -1445,10 +1445,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; -- 2.11.0