Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754221AbeAGQaj (ORCPT + 1 other); Sun, 7 Jan 2018 11:30:39 -0500 Received: from mout.web.de ([212.227.15.4]:58899 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754033AbeAGQah (ORCPT ); Sun, 7 Jan 2018 11:30:37 -0500 Subject: Re: atm/clip: Use seq_puts() in svc_addr() To: Stefano Brivio , netdev@vger.kernel.org Cc: Bhumika Goyal , "David S. Miller" , David Windsor , Elena Reshetova , Hans Liljestrand , Johannes Berg , Kees Cook , Roopa Prabhu , LKML , kernel-janitors@vger.kernel.org References: <97636808-1d9f-d196-ebce-fbd2505c50e2@users.sourceforge.net> <20180106232539.5d6bb620@elisabeth> <20180107163008.4ddd0c79@elisabeth> From: SF Markus Elfring Message-ID: Date: Sun, 7 Jan 2018 17:30:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180107163008.4ddd0c79@elisabeth> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:+1s8qKKY2Le/QaZPWUDL6n25gfy5H6HoYa4Px0/XJNza/qZ2QXJ oQe6yln54YXZvBnEdGXvnDMCwKLAdnyh1jq0Dc02gtSaeOhz47ZG8w9BbW41ZvBQ8mIFBJ4 rOpXL/ABcgFWSfWiLtXUW1DYB4gMsNSyrpuHWg7awxMmWUBRRq0ijj4BkGfRqWzMAY9Ke5A SeG9EoB35IKEEj7pj1kZQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:SEfrDfyEo8Y=:MQvBJq4cKclg4crGNqt5io TPQrfhLXpImMXmCXJVZrUZRnPnD1VLFqlE18U1SLFAwuRy8BDLbuXMvDKaEFpeKiPM3bT9TXp wVXZc6hyodugQqR29KNwqx+nu6Vw2JqxHN0/+t3c39Z8o0Y11qCYKShiDbBglTFfcrAatCzlc SDONqTpEHzGR/FWdzEX+J0eqSi4RZcjYKDCrZhXCS+67e8+nJedZHDK8fSYekbC8rmiSoyEmS TjRUUEDuHHGHzgQufHGB6fbpFYUqsDWvxyQbqPy4NCbNxBX3Lb8nqdurkci9h1+8YvVnrhitT WwlUNXs5y13rj0+QlE5OsVIA6sxa8K7NNy6gRu2CFf7+HpPY8jApN9ywsVPpLGHuVRPL0s4t2 F6OVC3lVDE/+YoX7p5dFF7cCXyq1VmpRN700DQsc6DVpc1w1UaqKblVZbMnsRI5UZBuwfO3Yi qCkZ/Wc8e2qyE0gDLIO8ZIl9oUnA2nDQ1mb+snFu02LRwEyqzIOgFjjoYbxFCbe+++REgmfDr 5H1Xo1R3Xhn7R3zWWMBb+Pu8kPtYe0duYK/fp0GnLC0Fs+7qHX1syiLHMgJIZ6kVJMbmemhHg BpUzioz/mFslf9KEiGGxpDjgHuza9AY71E22TkiEU1cJlr4Ee9V57N1Zkc+LKYDP5gcOPYstv oZY2PAYO8V8UYIuQSjyzLQehQIwF8M2CErMjE4Q2c5nTCYP3FS5d2DqKQGJ8qzct4xS4yyh4w xG4NXCo9jAy+HjNM86hRgw6UKYVyV4O3GH5NkOGjGxR1308TBcNL/Bl7TvaWX2sEiiVNRUajZ 2+WeFrd9YmUX2ZHRog/PSDhz0DVjdmJZrJ65EA6omyj1C4261w= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: >> Is the function "seq_puts" a bit more efficient for the desired output >> of a single string in comparison to calling the function "seq_printf" >> for this purpose? > > Will you please be so kind and tell us? How do you think about to get the run time characteristics for these sequence output functions better documented? https://elixir.free-electrons.com/linux/v4.15-rc6/source/fs/seq_file.c#L660 Can an information like “WARNING: Prefer seq_puts to seq_printf” (from the script “checkpatch.pl”) be another incentive? >>> and "strings should be quickly put into a sequence" >>> isn't terribly helpful. >> >> Which wording would you find more appropriate for the suggested >> adjustment of these function calls? > > Whatever describes the actual issue and what you're doing about it. > Turn your rhetorical question above into a commit message, done. > > Compare that with your original commit message, on the other hand, > and you should understand what I mean. Which descriptions are you really missing for the affected data output? Regards, Markus