From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47101C6FA82 for ; Wed, 28 Sep 2022 23:00:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234302AbiI1XA0 convert rfc822-to-8bit (ORCPT ); Wed, 28 Sep 2022 19:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbiI1XAP (ORCPT ); Wed, 28 Sep 2022 19:00:15 -0400 Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82A5D83F09 for ; Wed, 28 Sep 2022 16:00:07 -0700 (PDT) Received: from omf07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 58E99160E52; Wed, 28 Sep 2022 23:00:05 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA id 7ECB72002C; Wed, 28 Sep 2022 22:59:56 +0000 (UTC) Message-ID: <8101cb98ab2993bf24720507be13f8d54233a161.camel@perches.com> Subject: Re: [PATCH linux-next] net: atm: Convert to use sysfs_emit()/sysfs_emit_at() APIs From: Joe Perches To: Jakub Kicinski , zhangsongyi.cgel@gmail.com Cc: davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, zhang.songyi@zte.com.cn, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Zeal Robot Date: Wed, 28 Sep 2022 16:00:02 -0700 In-Reply-To: <20220927070134.7cde492d@kernel.org> References: <20220927064649.257988-1-zhang.songyi@zte.com.cn> <20220927070134.7cde492d@kernel.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Stat-Signature: nx7gnb8wofr4s6pb9yy8gkff9qni1bjy X-Rspamd-Server: rspamout02 X-Rspamd-Queue-Id: 7ECB72002C X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/vpFXlWlXx/p7iE1oC4hX+AXIdI5C4TU8= X-HE-Tag: 1664405996-276980 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2022-09-27 at 07:01 -0700, Jakub Kicinski wrote: > On Tue, 27 Sep 2022 06:46:49 +0000 zhangsongyi.cgel@gmail.com wrote: > > From: zhang songyi > > > > Follow the advice of the Documentation/filesystems/sysfs.rst and show() > > should only use sysfs_emit() or sysfs_emit_at() when formatting the value > > to be returned to user space. > > Is there an end goal to this? To make it easier to validate all other kernel uses of sprintf/snprintf/scnprintf. > If the code is correct let's leave > it as is. ATM is hopefully going to be deleted soon. The code is correct as-is.