Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp74649rdh; Wed, 25 Oct 2023 16:52:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE45aA7pl/KrXA+HC9pQVrqzOv46fcPWZ01tMpAPFqQ2gPb6opDEnxvwxw2GlIvGvBtb7Cy X-Received: by 2002:a05:6902:1509:b0:d32:f2e7:7786 with SMTP id q9-20020a056902150900b00d32f2e77786mr19152463ybu.56.1698277946964; Wed, 25 Oct 2023 16:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698277946; cv=none; d=google.com; s=arc-20160816; b=SCI5MvC3Tzn49hHoN3Nzw8tbkEzIN41bss+sxkTlSvGsr/id1YA7099aO8dCZ/yQ7Y dFIpLsC83If/Gryn+IF6risGHDCePOJtIkuFG76+Xt9MPibMSuRp1MMErkyy2lPId01a OLlSXk1bfTcucjSnbUIg6azSp0xUOf2VQskkq0yjxyJck6TJRsOAFSkb8xjqGO0s/2Sl x9qUsES8dhABkYWtAKcEAOQrTWMFAVubSukgEmDdzS4A3+FwyRSvRMe+tobFNXzob68L Uooknsw1rdu/Sd6a7uEg1WtE+iItYL/KCJOEzCaZ33Z6I25nsg76qpp9iXC3OzOTNXZ4 ZLmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=XLjDKI390eAxpvhJqoNtQrI5LSC3sQBTPDsosWAHzCg=; fh=71ZSNSv6MnGzrD+UFPBJVVxtw6/pRiQ7vBn3thd6/ks=; b=o47lwBwuXyTqJWWBpvMFTU09irqz/lzUiiUPqzlqktH1MwiCBKQIaknBe988T12Q36 3O0f2Oq8zfuqHKX2xVHHNiGXoqJwSa4D3r0Bm2q1+T8oT/Z+i156Mbyp2UIbsrTI1EbS xH2eh6pdxkBJreH4VE9mNy8rP4PNsHuiDYwEQmgrecD4lqmGm7VW5oodVQeLmF+4/imO giHwiFW4oUmg90ewglIitQgrgpITgYfFDZz6n3FV0bh96hqSRLHjGlD+qv0CReyXb/gJ pDAa1oZnmhyMoNjQInQQlTZ0cXItvkHfwGYCUPxxmzeZkFlqIqsQUoMrfXe+zOZOttz2 AxTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h25-20020a25b199000000b00d9a6a0bf2c6si11756314ybj.475.2023.10.25.16.52.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 16:52:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id F1816805F40D; Wed, 25 Oct 2023 16:52:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234962AbjJYXwP convert rfc822-to-8bit (ORCPT + 99 others); Wed, 25 Oct 2023 19:52:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343919AbjJYXwB (ORCPT ); Wed, 25 Oct 2023 19:52:01 -0400 Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4425D5C for ; Wed, 25 Oct 2023 16:51:52 -0700 (PDT) Received: from omf02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 1F6B1C0B3C; Wed, 25 Oct 2023 23:51:48 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA id 449128000E; Wed, 25 Oct 2023 23:51:37 +0000 (UTC) Message-ID: <10a072f549e187bc2fdc735c0161c09c90fc1392.camel@perches.com> Subject: Re: [PATCH 2/3] treewide: Convert some ethtool_sprintf() to ethtool_puts() From: Joe Perches To: Justin Stitt , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shay Agroskin , Arthur Kiyanovski , David Arinzon , Noam Dagan , Saeed Bishara , Rasesh Mody , Sudarsana Kalluru , GR-Linux-NIC-Dev@marvell.com, Dimitris Michailidis , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Louis Peens , Shannon Nelson , Brett Creeley , drivers@pensando.io, "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Ronak Doshi , VMware PV-Drivers Reviewers , Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , Kees Cook , intel-wired-lan@lists.osuosl.org, oss-drivers@corigine.com, linux-hyperv@vger.kernel.org Date: Wed, 25 Oct 2023 16:51:36 -0700 In-Reply-To: <20231025-ethtool_puts_impl-v1-2-6a53a93d3b72@google.com> References: <20231025-ethtool_puts_impl-v1-0-6a53a93d3b72@google.com> <20231025-ethtool_puts_impl-v1-2-6a53a93d3b72@google.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Stat-Signature: 5zoexpcbspxzknxxpim471w8h6ypycid X-Rspamd-Server: rspamout07 X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Rspamd-Queue-Id: 449128000E X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+N9jPJtzOomgZCQ3uE45mqLpiTL9MLOGI= X-HE-Tag: 1698277897-822398 X-HE-Meta: U2FsdGVkX1/piP9epU3PVb8AwxfPnu298LT8+2Ear/QjzRdkg6TlU4ZFVqJStDqO3n+3XE7b+rXjNdVvUiGSpVDrBgNJwbvjRqVhbJYzw3bBx3/mHpMMWU2QA6eLuXuJG9IesNuAClmh2oGyXSTOr5SuM/vS8dt120/ZwdRa0ftJlSyabPiL2I71rQT5u8Z6hamposOtxW8UWys/hMh2ropByFvBIg65AsshQHUvJDmlsWp9lU1T5sJTLuf08ixeHbrY1HQRccfAMy3fhqmlo/ZjQQIgre7Fj+1RAgShAxn1lnKnuxLHp6zSrJJsQib8 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 25 Oct 2023 16:52:24 -0700 (PDT) On Wed, 2023-10-25 at 23:40 +0000, Justin Stitt wrote: > This patch converts some basic cases of ethtool_sprintf() to > ethtool_puts(). > > The conversions are used in cases where ethtool_sprintf() was being used > with just two arguments: > > ethtool_sprintf(&data, buffer[i].name); OK. > or when it's used with format string: "%s" > > ethtool_sprintf(&data, "%s", buffer[i].name); > > which both now become: > > ethtool_puts(&data, buffer[i].name); Why do you want this conversion? Is it not possible for .name to contain a formatting field?