Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3657737ybi; Tue, 2 Jul 2019 11:12:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLarbTrc6mfuG6CMFlok2/0JJibE7JydJTTSXkg1LvWbD9IHTP5ria+i8xvRKLYgWV28rS X-Received: by 2002:a17:90a:601:: with SMTP id j1mr6951328pjj.96.1562091165446; Tue, 02 Jul 2019 11:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562091165; cv=none; d=google.com; s=arc-20160816; b=pZ4D03gb3tNXzQ67CYnIAGW+yP4EukIFP48JamoC6iwaIA4PNkzakvH3eCJx/uU+p4 qqxZAH7yZdE06TZHdrBcgAtdkrIKFKxW0Rlsa7bBfvAs+FF1nBBUJjPx/NGMCHGF8EDk 4v374w4gf7vRKqlcCIiuHHr0h4iSd4csHX3pyYZ2FUAOhkMLwzDDQ8NKPJjtTZSzQEb0 c5AixZJJ4NpF0o9JEoovik2cuzlNflEJciril6Bg7N4tb2+TtUrBGtei6Sr4+qTcGU5e MBq6Rnl94XCT/H5Lne6GW3Ni8nN4tyMfdpMqDEuX8fs4/qBecT3p22Jcve05/PsIu9kp rNMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:autocrypt :openpgp:subject:from:cc:to:dkim-signature; bh=qDVESDUU5r2CuBzjzwgipYApvQNWFS3dvr/2An64B7g=; b=vHCp55+cObGye/8f42Mc8zg+NqiGURPc35hR1HBVHtY0yvFoEQhjAZffSlqB/U6LuI 8SWTna3W5XTW43+Y1BLnSCd8/raGt1n8i25b9ajERW7WvCHuBGLWPTiyJdup379azP6u Deo22hD8qZrDrkuqgKXdXqX+sP78b+n4zTcP1onndtMit0zP2dDB5NzosCq2ovBrcQZE 5OZ3FdCu2flykwiaqkf54e+XDcqF4t3fQ8mE6ZhKMdQyZsMrumXl63TOUpjjDpjx5C2t YBVHyFdI7WojKlFoP5cv+rkbnIqWEoEuyEtzC89SooQYG4GpOexDwCccOepscKCvNuQk uaYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=gSwVsfYe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si14137891pfa.248.2019.07.02.11.12.30; Tue, 02 Jul 2019 11:12:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=gSwVsfYe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726908AbfGBSMI (ORCPT + 99 others); Tue, 2 Jul 2019 14:12:08 -0400 Received: from mout.web.de ([212.227.17.12]:48275 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbfGBSMI (ORCPT ); Tue, 2 Jul 2019 14:12:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1562091115; bh=/a9zSwi0Y/pi9ROY+DTVB0GUvSlQ80eCZXaqiI2JNVc=; h=X-UI-Sender-Class:To:Cc:From:Subject:Date; b=gSwVsfYeBqH9RY6ez6Iq2RACegCF642TuLg7qzF/PHtZb9FNKZbW6sjhWJHaTSRJ8 N0gqDRYvzfIu6FO5HylZqXlCdzqzyxA5RApqyuh8//iIo1eASS1Hq7GHpHmjhdF2Gu htw34lEyuSOPesFs/OIRsrPaQslw56mQhe6t44FU= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.2] ([78.48.11.114]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MFcE5-1hnc342ghp-00Ecra; Tue, 02 Jul 2019 20:11:55 +0200 To: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, "David S. Miller" , Florian Westphal , Jozsef Kadlecsik , Pablo Neira Ayuso Cc: LKML , kernel-janitors@vger.kernel.org From: Markus Elfring Subject: [PATCH] netfilter: nf_log: Replace a seq_printf() call by seq_puts() in seq_show() Openpgp: preference=signencrypt Autocrypt: addr=Markus.Elfring@web.de; prefer-encrypt=mutual; keydata= mQINBFg2+xABEADBJW2hoUoFXVFWTeKbqqif8VjszdMkriilx90WB5c0ddWQX14h6w5bT/A8 +v43YoGpDNyhgA0w9CEhuwfZrE91GocMtjLO67TAc2i2nxMc/FJRDI0OemO4VJ9RwID6ltwt mpVJgXGKkNJ1ey+QOXouzlErVvE2fRh+KXXN1Q7fSmTJlAW9XJYHS3BDHb0uRpymRSX3O+E2 lA87C7R8qAigPDZi6Z7UmwIA83ZMKXQ5stA0lhPyYgQcM7fh7V4ZYhnR0I5/qkUoxKpqaYLp YHBczVP+Zx/zHOM0KQphOMbU7X3c1pmMruoe6ti9uZzqZSLsF+NKXFEPBS665tQr66HJvZvY GMDlntZFAZ6xQvCC1r3MGoxEC1tuEa24vPCC9RZ9wk2sY5Csbva0WwYv3WKRZZBv8eIhGMxs rcpeGShRFyZ/0BYO53wZAPV1pEhGLLxd8eLN/nEWjJE0ejakPC1H/mt5F+yQBJAzz9JzbToU 5jKLu0SugNI18MspJut8AiA1M44CIWrNHXvWsQ+nnBKHDHHYZu7MoXlOmB32ndsfPthR3GSv jN7YD4Ad724H8fhRijmC1+RpuSce7w2JLj5cYj4MlccmNb8YUxsE8brY2WkXQYS8Ivse39MX BE66MQN0r5DQ6oqgoJ4gHIVBUv/ZwgcmUNS5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pvp+Orcz5KixHQmc5tbkLWf x0n1QFc1xxJhbzN+r9djSGGN/5IBDfUqSANC8cWzHpWaHmSuU3JSAMB/N+yQjIad2ztTckZY pwT6oxng29LzZspTYUEzMz3wK2jQHw+U66qBFk8whA7B2uAU1QdGyPgahLYSOa4XAEGb6wbI FEE= Message-ID: Date: Tue, 2 Jul 2019 20:11:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:cpD8/pZMkphFpZd+n8qkZ7B8EWpJuKAlsEvsw4IrfzMw31wilNC MAiYqlBo8+Z9gMpj5AycLqtoxFExuXZ552k8Oo+3vtKmGNNG0+wSdGjDcH07JEXeRjRei22 SNosxeTi6tRyQ9KgnfS1chVVHHhDB94BxgisXYCEy6ghMWNArCVFP9gDbxryj0/2hhoSi/2 M08i9+99ZX0on8/4PEeSA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:j1UiI//MHNI=:1q24Fozeym9A7czh4lSZS5 aH+BxtCw63leli5wijwHfUdz+2jxbNknNC9AW2xg4dNAJk8NGHDrD9H2Az1XpHcEbIiJm2DMP D8ytuikh6S00ycKh4DJ/cSdmwEw1fxL7Tc3cFu5uB3sAbysl9vAkcrzOjjX0ClGRIxHXbUYuw hYyXsts50pCpGkRNL0nYLQ6Q7/L0qTFRywRRFvmpVCTLzVBHAvQKJ2+7IX9gjf2yCFHeAd+BJ hr1ErjsMSRcGijCS93eVBniWJT54WTBiLP4GDu7zQxAc+vmofApw6dZNvbs0rcLaQgKrqlCCx 7BOrOqC8aPicdVQIY/2V4rzZDTYg+c5PW/Bqa/wPjNQFWn8UOAq4Lu0vqgDjLXYixXjFKaLx5 U+ORT9L6ooEpM8DiQuPwahHx+bFUd0Oxb9YO961YfKKPS3avDqEoPW4c2XqpBjLl57/Nt0OqU 1z3TYeU1dZxpS4WbwlrFadIRPIhkZ43Chzaos1WMIxfbq3kE3tx9TvlfTUhJ5gcqaKwT6xHIn EXBpTSKehdVTg7uCJG4YdWRO0aFCquH1Z0mra3XQI7KEpeveNMIYmtA5lZr7JuGtkDLdS21aL sgk8N6VkmdsFz0LT30hA58hBjxNoMqp9+Wqef9st7U1AybxxWgdoLk1F8wd0ZcDxnddT/EDR1 DmTGBHWPvgfuZaNYksD0nYm+AKVU4TuFncL9K1yRf+BedLiO7+e6qM+VKCkH/mvJax5H+DMnv HeCpAY+JJOdOfEcThaq+4M6u4qkpgNf0MUJnH+D0Z+OqXhThILeBjwUAvN/s1PwQvVQ/v6tpW W3jEIVUtBVYUmSn0UMEkjdiqzZXv1ecsEHYb6M0caNMrrV7uCpLXnjIDMbZW0QgIBnOra+QIO AFE4Q2KAJmB8pm3Ll9rldJqQUZx30/YZX4EfL7PrzSapt+xyW1OYFnSEr5myPzaCfeGuCQ4FR l7SlX1NldDVIFyegajhWAOG5KdjwALpfHsJp8jAxjXpBJLVzWNEFX8sTATQf24royR36Irf2B Lh23rx7HqZLyn1Xa/HHBBIPhou4Ohlevu6KYcwE0RRD6kWhEzGl+sOvTa1V8HufmR98Kh6bIE PVAzNAqhpHVsLslaTmsd20kLPNbgRhy75iY Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Tue, 2 Jul 2019 20:06:30 +0200 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function =E2=80=9Cseq_puts=E2= =80=9D. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring =2D-- net/netfilter/nf_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index 3574a212bdc2..bb25d4c794c7 100644 =2D-- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c @@ -374,7 +374,7 @@ static int seq_show(struct seq_file *s, void *v) continue; logger =3D nft_log_dereference(loggers[*pos][i]); - seq_printf(s, "%s", logger->name); + seq_puts(s, logger->name); if (i =3D=3D 0 && loggers[*pos][i + 1] !=3D NULL) seq_puts(s, ","); =2D- 2.22.0