Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1735490rdb; Thu, 7 Dec 2023 07:30:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEd2dIkFKRJMH6I55W994KyDZ4URaA+kN7apb5bhBGCMQKeBUsm4BV+8o7c2/YEJAULIIZc X-Received: by 2002:a17:902:ee05:b0:1d0:68a:4a12 with SMTP id z5-20020a170902ee0500b001d0068a4a12mr5688614plb.15.1701963035003; Thu, 07 Dec 2023 07:30:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701963034; cv=none; d=google.com; s=arc-20160816; b=PWG/cscIrB4t8TpQFv5RhrdBXjD75HcwzEv3VNy7omPa0jhEvE2YUHKAt3MRMEMXXU v/L48hPgC0QQzxaKMqgheRAqOwVr7p7937jY3GN802j1Z1l+deWQVrmPaKWClsI5LMuX T9hD1wSLHOcSS1iE0zzF6/5XrVm6DxLq4V1vpnC4gSZh3REOFF3HWyAfboKBXFZqoNIA 7bQ1qFFQeh13F4zLZXWecnZF7rdxP3wPu0q0JZ3lfsPf6JHM8h9GJ59Vw1emXp+Hiy11 H0wh5d48es7jjX8TQ9ijLio4kFCDWylinNtgevBrsSUGa90W5JyWg5hC/fbDIzhkJHHw z6jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=n+I5o5uNs0ujmnJFMTa99RBBYyMjrKgdxQALljW8hDk=; fh=A6Ak/0HuETwc581UDqGEEVzLAcTCNqoOurHNkiA/JQU=; b=bVi+2vk3psTw25f9nn3zz/HoSyIIiqEJ5AoXzHwhLcdhYsVvY4pH+BdITZZwWimFhy bXhTpdqzvIvlWfpYALAG018VmPEctgFvy8+C5L3Oi39NJp/FASNepRY7jbc128sNyGfT PcRW1743eZrEsEyEyzaC8M1HzSIRWdf9TYuqdGUM/wCm85n0YdnPsNHuQQfKxxLczohd WGRrIjXxFyexQjtzdPpKoG//u7W4DhK1i1QSDwECigl9eTyod7U7YOmcCA13LksjMwxe g4zNc2zKwB2atp9PNB6JbJFU3Xti28LMzCY+XSXxmWrgNfSXKWliNa1L/E2xiWRGdz4k Ngjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="oxOzptF/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id b8-20020a170903228800b001d00a56b03asi1336100plh.337.2023.12.07.07.30.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 07:30:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="oxOzptF/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 893D780BA685; Thu, 7 Dec 2023 07:30:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443478AbjLGP3t (ORCPT + 99 others); Thu, 7 Dec 2023 10:29:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443452AbjLGP3s (ORCPT ); Thu, 7 Dec 2023 10:29:48 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE20410C2; Thu, 7 Dec 2023 07:29:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=n+I5o5uNs0ujmnJFMTa99RBBYyMjrKgdxQALljW8hDk=; b=oxOzptF/B2tvkGKr5hOfx+sAp+ DtwJIPV2JMNZPaTf2fo/lACU/XGm6oxPZuecFhhAEjNINbbw8pnrHLrQ21uIFiJud38o+uozFe0NE An8zs0GvRftOjjR1SDmTn9W8+bD8o9yCGe/jmpTBcEsLBJefvDLa9fu639enHNxBnA8g=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rBGJ5-002KI3-R5; Thu, 07 Dec 2023 16:28:55 +0100 Date: Thu, 7 Dec 2023 16:28:55 +0100 From: Andrew Lunn To: justinstitt@google.com Cc: "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 , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , Hauke Mehrtens , Florian Fainelli , Vladimir Oltean , =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Linus Walleij , Alvin =?utf-8?Q?=C5=A0ipraga?= , Wei Fang , Shenwei Wang , Clark Wang , NXP Linux Team , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Jiawen Wu , Mengyuan Lou , Heiner Kallweit , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , 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, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bpf@vger.kernel.org Subject: Re: [PATCH net-next v5 3/3] net: Convert some ethtool_sprintf() to ethtool_puts() Message-ID: <43063267-191c-47b2-a824-ba93feb89834@lunn.ch> References: <20231206-ethtool_puts_impl-v5-0-5a2528e17bf8@google.com> <20231206-ethtool_puts_impl-v5-3-5a2528e17bf8@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231206-ethtool_puts_impl-v5-3-5a2528e17bf8@google.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 07 Dec 2023 07:30:05 -0800 (PST) On Wed, Dec 06, 2023 at 11:16:12PM +0000, justinstitt@google.com 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); > 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); > > Signed-off-by: Justin Stitt Reviewed-by: Andrew Lunn Andrew