Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753847AbeAMTSm (ORCPT + 1 other); Sat, 13 Jan 2018 14:18:42 -0500 Received: from mout.web.de ([212.227.15.14]:59877 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbeAMTSk (ORCPT ); Sat, 13 Jan 2018 14:18:40 -0500 To: netdev@vger.kernel.org, "David S. Miller" , David Windsor , Elena Reshetova , Guillaume Nault , Hans Liljestrand , Kees Cook , Lorenzo Bianconi Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] l2tp: Use seq_putc() in l2tp_dfs_seq_session_show() Message-ID: Date: Sat, 13 Jan 2018 20:18:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:QX9qeZrhgSltslxvIz+dIW51YsbGjMkpgcIqpfYt3OMaaGBTzmv 9I9lAnqL0WY6dYtA0dGbPSnpH/ECgRHRueZ08T4kXVw3KEEqQtcqlma5qid2peEiwzVUYHe mmyoDVYuOcTUWnX6lDFHWJ1AiPPujcIyNsZKpaVjx5H4RAOln5JTdRM9mTVoMwrAKdRIzYx dx0iTQyARNraxbZD3oxGA== X-UI-Out-Filterresults: notjunk:1;V01:K0:+M8ITjLGZ6E=:euWofb9KF23989VvpzRti7 AST7XQEiR2KCI9X54WZVwDNrrH4tnLt0ufaL50YL4ErUvarvVA75UstGKD1GDt2jUIEEp8gYC SuyXhHm+hcF54w7JNnQsCI1jzOhg7BHNGLgEhxv4t7HD7tad5CgJUGaWujRp2atSxqSHlga29 Jy0Kx5161mEIsy/eSSQ00tW6ogFhX3e0MYqkN9wtPLv+I77kr/rMQIIUn+Nv4KE2AnEFxz5kB B5HbdoQ2tB3ha1B9an2AICdz1FKGCmfswFi/MF2hy7mGudDsAXlGrHmbICfoxFcauo2ICn2D7 wYbZovgHUt/iDvhPK0iQ39H9klCVhETZ0QczqUbHbTCbBGOzkgUJkOZc9yUC2ojCzWfhg+UBp mZKNGc31dDbULD+RR8+BFOjcg9irvhbSMtaEzHp3Jf1J8JvQyoPQxGFwrZoCEMVSOxN23A2xK J0nCvD6KralJjlYWTPBuZo54zbOUsnQP2NdsCQVNK8C2CQ069XrryLiSIEe20yVoIoADWGd83 u/c9QkHCYlw8UVdJbkbnLWLOnMqK0T7fmRyPLfh8hnZe9Ny+XAm/XKjCXTSk88wBmxnxuxrgV 7MomhonOBhshmr/v6t9d+9FIxTmY3v/eFvt5CV1FvUghTAx+YliL5P+sRXHGk5h1GIMcR5DBI dtJ8GGJHcdbrzd1fw19OF4yM/Y17kX9ltdtwY4ZtzKwgfuz9pENhqNDoPbm4EkfyF3cEl3q8Q 0JQIoY6iauHX6FX96FSs7vvNSxaqhPR49Y19iAISJ3bwzlKWDfXs0OOvij3rAZ2aBj7z/XroW R392cnq1l7bz5cMJ/qukL7qF4FnCv86A7+um2qRK+iGyx0YWfE= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Sat, 13 Jan 2018 20:11:01 +0100 Two single characters (line breaks) should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- net/l2tp/l2tp_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/l2tp/l2tp_debugfs.c b/net/l2tp/l2tp_debugfs.c index 4cc30b38aba4..0a5add3ecdba 100644 --- a/net/l2tp/l2tp_debugfs.c +++ b/net/l2tp/l2tp_debugfs.c @@ -191,7 +191,7 @@ static void l2tp_dfs_seq_session_show(struct seq_file *m, void *v) seq_printf(m, "%02x%02x%02x%02x", session->cookie[4], session->cookie[5], session->cookie[6], session->cookie[7]); - seq_printf(m, "\n"); + seq_putc(m, '\n'); } if (session->peer_cookie_len) { seq_printf(m, " peer cookie %02x%02x%02x%02x", @@ -201,7 +201,7 @@ static void l2tp_dfs_seq_session_show(struct seq_file *m, void *v) seq_printf(m, "%02x%02x%02x%02x", session->peer_cookie[4], session->peer_cookie[5], session->peer_cookie[6], session->peer_cookie[7]); - seq_printf(m, "\n"); + seq_putc(m, '\n'); } seq_printf(m, " %hu/%hu tx %ld/%ld/%ld rx %ld/%ld/%ld\n", -- 2.15.1