Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3808093pxy; Tue, 4 May 2021 10:20:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDZ3q3JplVQJNlSH/wm7z1tqm8leoO/z2uT6pTqY3Utj87xJrYJc7a7jwEwLaEvdUQ7plF X-Received: by 2002:a63:d47:: with SMTP id 7mr24743038pgn.400.1620148806792; Tue, 04 May 2021 10:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620148806; cv=none; d=google.com; s=arc-20160816; b=XhkKRdov56OHUqg1DxeyliIBm36SxK3GwA+R39y3LqLNKvGjnrQebUdXWFJClx85+k iZAaRH16W//gwhnPyXiMBr7ZlwQEOcitsViA8o2Ed7qre5AAwFIhLM3VyTQ6PR+4dkFM w30elR9eVaTCqv3Gpu3AwizBsNqJXc+haJ0kvsRihjek0nlBCc60KtX0D4DnEgjAEhcO TQR0A36gd1VwgVsnDBSJ4zNOEucsjpyM4dlFj2gO6AVxHnQUtVCikUANVfk9hs0wT3Re Dl+uBg7xEaLRmKZZx7aYcQuaJMizk/gIPzmu9uPm7K1q9MuWje0cqanzBsQeNhrHLHhE OaqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=YNcKxTDpJK3RzMShS+7/yWnId5hgOti4Han2WSJbeTI=; b=Kp5n+sfuWI8o6gy6Lk45yNQZYP/0lF5jHvTNdLivdctWBQ+7SCbVFNaSdAfILhBtBU IYBTJ27wolVU70GAILBV5x633zTXdDGuC0kHs3EW9CNqylz07+SoxBymljrmRznoVqAj k7Yzp6NGm2epVwKnqhBUwanSSh803myfbPxWlfguyKCNB2B3S4JYOZrMYQVCIIgVrc+y OuwsCmvRDnMhl0i+XBLLcGHwFM7F7jSKvwu/ppoay6ztU/MVCeGEeja5oh+MG7vxY+Ov O5izM2hNE/FdLXpskX1DnON0FeQxYr5vQgn7CaHJKTwvB1XuRj5xH1DTIohNyW+eEWtp Zxdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si1988342pgh.159.2021.05.04.10.19.54; Tue, 04 May 2021 10:20:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232262AbhEDRTH (ORCPT + 99 others); Tue, 4 May 2021 13:19:07 -0400 Received: from smtp06.smtpout.orange.fr ([80.12.242.128]:58274 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232155AbhEDRSx (ORCPT ); Tue, 4 May 2021 13:18:53 -0400 Received: from localhost.localdomain ([86.243.172.93]) by mwinf5d41 with ME id 0hHw2500D21Fzsu03hHwtL; Tue, 04 May 2021 19:17:57 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 04 May 2021 19:17:57 +0200 X-ME-IP: 86.243.172.93 From: Christophe JAILLET To: thierry.reding@gmail.com, lorenzo.pieralisi@arm.com, robh@kernel.org, bhelgaas@google.com, jonathanh@nvidia.com Cc: linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 2/3] PCI: tegra: Use 'seq_puts' instead of 'seq_printf' Date: Tue, 4 May 2021 19:17:54 +0200 Message-Id: <7bdedb342b9221169ab085540cf25d1992e8b97a.1620148539.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.30.2 In-Reply-To: <55b11e9a7fa2987fbc0869d68ae59888954d65e2.1620148539.git.christophe.jaillet@wanadoo.fr> References: <55b11e9a7fa2987fbc0869d68ae59888954d65e2.1620148539.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As spotted by checkpatch, use 'seq_puts' instead of 'seq_printf' when possible. It is slightly more efficient. Signed-off-by: Christophe JAILLET --- drivers/pci/controller/pci-tegra.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c index 006bf0346dec..fe8e21ce3e3d 100644 --- a/drivers/pci/controller/pci-tegra.c +++ b/drivers/pci/controller/pci-tegra.c @@ -2550,7 +2550,7 @@ static void *tegra_pcie_ports_seq_start(struct seq_file *s, loff_t *pos) if (list_empty(&pcie->ports)) return NULL; - seq_printf(s, "Index Status\n"); + seq_puts(s, "Index Status\n"); return seq_list_start(&pcie->ports, *pos); } @@ -2587,16 +2587,16 @@ static int tegra_pcie_ports_seq_show(struct seq_file *s, void *v) seq_printf(s, "%2u ", port->index); if (up) - seq_printf(s, "up"); + seq_puts(s, "up"); if (active) { if (up) - seq_printf(s, ", "); + seq_puts(s, ", "); - seq_printf(s, "active"); + seq_puts(s, "active"); } - seq_printf(s, "\n"); + seq_puts(s, "\n"); return 0; } -- 2.30.2