From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH V2] net/netlink: optimize seq_puts and seq_printf in af_netlink.c Date: Thu, 03 May 2018 12:58:00 -0400 (EDT) Message-ID: <20180503.125800.805006461069190790.davem@davemloft.net> References: <20180503090901.35bxgzs2tjsl7bqr@debian> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: xiyou.wangcong@gmail.com, yuzibode@126.com, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org To: tsu.yubo@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:49414 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750954AbeECQ6C (ORCPT ); Thu, 3 May 2018 12:58:02 -0400 In-Reply-To: <20180503090901.35bxgzs2tjsl7bqr@debian> Sender: netdev-owner@vger.kernel.org List-ID: From: YU Bo Date: Thu, 3 May 2018 05:09:04 -0400 > Before the patch, the command `cat /proc/net/netlink` will output > like: > > https://clbin.com/BojZv > > After the patch: > > https://clbin.com/lnu4L > > The optimization will make convenience for using `cat > /proc/net/netlink` > But,The checkpatch will give a warning: > > WARNING: quoted string split across lines > > Signed-off-by: Bo YU Please do not reference external web sites for text which explains the change in your commit message. Simply show the /proc/net/netlink headers and then one line of the output, before and after, in diff style. Then it will be clear to the reader that you are not "optimizing" anything. This is not an optimization. You are just making sure the headers line up properly with the actual value output. Thank you.