Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2375051pxy; Sat, 24 Apr 2021 13:55:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtzJ4N2y7cY+rxR3KLBcy3HwWOWxAf2s7ifk2hQ5qYo3jkFEgrT9C8oKpwkEK/Sz24+Xb4 X-Received: by 2002:a17:906:168f:: with SMTP id s15mr10532025ejd.144.1619297712483; Sat, 24 Apr 2021 13:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619297712; cv=none; d=google.com; s=arc-20160816; b=a/SIl2wbP+RxPNlK/tZoD+c7h+vtDvUxaIRCguO1Mnj22so3z+H+0MjG18F6zbhXur kqJwa+hjIy0vBBJGDf7552aGOIhkuIlenayYzrpslfEGZNNqmDJ126rvITpsxzmSDhu0 jHiAWYM2r7hU+RFSUCjp525wX4y4up/fkq7UDRgXLawcrIeYc1fWgAjvBBYFT88CngkV p9PezGXo2n+x1SUivLc7H/fZud8TuQDz2wO8xChHpQXCPjPgs/50kf3yhVcfqJTPaemI cqs4DGS7ZqVAx6+F7fChA8vghsvbEwI061BaB0VoJGz1uI7UdjYvR8pA9hxTHMH6jOnE 52eg== 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:to:from :dkim-signature; bh=tZ6MnjBW//QPNmlqP0nmZIAzxWK0w5bhWYAOyoIZMEc=; b=rpvNzri5++2VWdHagkG79qTa4I252Db4VtytTjnyfwn/DQtbdkvCi8sLBKL6dmQyqk WaWOn9mGndotN95MnGTPb+Bo7cRtW/bBzIy1oq6VI7dsSSBmMViQ1zLaP1B0vO5cpF5Q xBl72SteyTYtqotDbdHf08VMO4TQLkeqOHN2TEpFWIHaX/JVLeS+vH7V4zSzwTSHEqVj EbiTkNdxEQDs8maqXHw3o20wGxAOaNB3Xn7J7LPJpVF53PebKh6JpyMLsQMfO0ivyJ/F LHxvlJwKxZtfKsFHSAjhFybNSQwdTuTbjkSmOwaJOlHFHAe3WFN/N1cDy+OAlOOf+LC+ ZjZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UoJLPpXU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si8849115edp.561.2021.04.24.13.54.49; Sat, 24 Apr 2021 13:55:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UoJLPpXU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237288AbhDXUwb (ORCPT + 99 others); Sat, 24 Apr 2021 16:52:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234112AbhDXUw2 (ORCPT ); Sat, 24 Apr 2021 16:52:28 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21F60C061574; Sat, 24 Apr 2021 13:51:50 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id g16so1712754pfq.5; Sat, 24 Apr 2021 13:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=tZ6MnjBW//QPNmlqP0nmZIAzxWK0w5bhWYAOyoIZMEc=; b=UoJLPpXUaitZH84OOKvwd/x/VxJ6bvaijj7VcLzjw3UOr80FBTY8vaDP5CURYAvoju 3cpnigAy9LwuwLNV7rkbmQSrJbUligseecZVrboWyVixSWIEhwAnRSGM59n4/HG4wk2s IyIVa2fz4bQO1SH2QThxqWSR0FqrReTH1HQJ9Rq6rsBVZ+erlD02wwsdSiefXIv56p6k G23gfkDB2kgnQJh9C+FEwkgBQuhliOaQo7MBmgBFvJZqTkrQt7fzHxOElcw9iNyKWL0B 31Su2E5gzdGxXWIrRyCh0vsomMGCOll7Lg0NJSnW1oUrT2kb3RKEr0ngKyLttXGuhwdi eGLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tZ6MnjBW//QPNmlqP0nmZIAzxWK0w5bhWYAOyoIZMEc=; b=ShWhD6kXiM+5xELCOKieBYGwtFYcrST0ljd/dU4MCOluCTX2btitHVMjqis+fqmvmv BlX8O5MkGHJ17avKhY1FNoTepFPQ0UppeMYsE7txqBYjYpczVLGwX8EQQ3ZCvk/TdysB E058mnP0JfyMvtazBq8PBm1kC0GxIxOP8vekT+IvzDNbGnXHlchDMouoKaEmOborreQC Y/DyzJhYR2qbMYaFbJGVhxNM0sxsQZQNWTgAI5tk340l6W1kITGmjTwMaGriGQkBhWD9 EgJOEc31AA3XpBSeEzNBHcmvcpcQK+Rmx6XujSLNZEiXga2Y2OSIl+HEbgEoMW/+Itwi 4yAA== X-Gm-Message-State: AOAM532celSWyy6fm/kFNwpXT+88WxXQH1Urz6vZVlPwRtXaaq5yE41l SyOUoVbiFTXVvVpqfgUTckE= X-Received: by 2002:a63:5322:: with SMTP id h34mr10067827pgb.182.1619297509689; Sat, 24 Apr 2021 13:51:49 -0700 (PDT) Received: from z640-arch.lan ([2602:61:7344:f100::678]) by smtp.gmail.com with ESMTPSA id w9sm7584489pfn.213.2021.04.24.13.51.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Apr 2021 13:51:49 -0700 (PDT) From: Ilya Lipnitskiy To: Thomas Bogendoerfer , Jiri Kosina , Ilya Lipnitskiy , Alexey Malahov , Serge Semin , Hauke Mehrtens , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] MIPS: kernel: proc: use seq_puts instead of seq_printf Date: Sat, 24 Apr 2021 13:51:26 -0700 Message-Id: <20210424205127.396630-3-ilya.lipnitskiy@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210424205127.396630-1-ilya.lipnitskiy@gmail.com> References: <20210424205127.396630-1-ilya.lipnitskiy@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix checkpatch WARNING: Prefer seq_puts to seq_printf Signed-off-by: Ilya Lipnitskiy --- arch/mips/kernel/proc.c | 76 ++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c index 053847c0d4cd..7d8481d9acc3 100644 --- a/arch/mips/kernel/proc.c +++ b/arch/mips/kernel/proc.c @@ -80,78 +80,78 @@ static int show_cpuinfo(struct seq_file *m, void *v) for (i = 0; i < cpu_data[n].watch_reg_count; i++) seq_printf(m, "%s0x%04x", i ? ", " : "", cpu_data[n].watch_reg_masks[i]); - seq_printf(m, "]\n"); + seq_puts(m, "]\n"); } - seq_printf(m, "isa\t\t\t:"); + seq_puts(m, "isa\t\t\t:"); if (cpu_has_mips_1) - seq_printf(m, " mips1"); + seq_puts(m, " mips1"); if (cpu_has_mips_2) - seq_printf(m, "%s", " mips2"); + seq_puts(m, " mips2"); if (cpu_has_mips_3) - seq_printf(m, "%s", " mips3"); + seq_puts(m, " mips3"); if (cpu_has_mips_4) - seq_printf(m, "%s", " mips4"); + seq_puts(m, " mips4"); if (cpu_has_mips_5) - seq_printf(m, "%s", " mips5"); + seq_puts(m, " mips5"); if (cpu_has_mips32r1) - seq_printf(m, "%s", " mips32r1"); + seq_puts(m, " mips32r1"); if (cpu_has_mips32r2) - seq_printf(m, "%s", " mips32r2"); + seq_puts(m, " mips32r2"); if (cpu_has_mips32r5) - seq_printf(m, "%s", " mips32r5"); + seq_puts(m, " mips32r5"); if (cpu_has_mips32r6) - seq_printf(m, "%s", " mips32r6"); + seq_puts(m, " mips32r6"); if (cpu_has_mips64r1) - seq_printf(m, "%s", " mips64r1"); + seq_puts(m, " mips64r1"); if (cpu_has_mips64r2) - seq_printf(m, "%s", " mips64r2"); + seq_puts(m, " mips64r2"); if (cpu_has_mips64r5) - seq_printf(m, "%s", " mips64r5"); + seq_puts(m, " mips64r5"); if (cpu_has_mips64r6) - seq_printf(m, "%s", " mips64r6"); - seq_printf(m, "\n"); + seq_puts(m, " mips64r6"); + seq_puts(m, "\n"); - seq_printf(m, "ASEs implemented\t:"); + seq_puts(m, "ASEs implemented\t:"); if (cpu_has_mips16) - seq_printf(m, "%s", " mips16"); + seq_puts(m, " mips16"); if (cpu_has_mips16e2) - seq_printf(m, "%s", " mips16e2"); + seq_puts(m, " mips16e2"); if (cpu_has_mdmx) - seq_printf(m, "%s", " mdmx"); + seq_puts(m, " mdmx"); if (cpu_has_mips3d) - seq_printf(m, "%s", " mips3d"); + seq_puts(m, " mips3d"); if (cpu_has_smartmips) - seq_printf(m, "%s", " smartmips"); + seq_puts(m, " smartmips"); if (cpu_has_dsp) - seq_printf(m, "%s", " dsp"); + seq_puts(m, " dsp"); if (cpu_has_dsp2) - seq_printf(m, "%s", " dsp2"); + seq_puts(m, " dsp2"); if (cpu_has_dsp3) - seq_printf(m, "%s", " dsp3"); + seq_puts(m, " dsp3"); if (cpu_has_mipsmt) - seq_printf(m, "%s", " mt"); + seq_puts(m, " mt"); if (cpu_has_mmips) - seq_printf(m, "%s", " micromips"); + seq_puts(m, " micromips"); if (cpu_has_vz) - seq_printf(m, "%s", " vz"); + seq_puts(m, " vz"); if (cpu_has_msa) - seq_printf(m, "%s", " msa"); + seq_puts(m, " msa"); if (cpu_has_eva) - seq_printf(m, "%s", " eva"); + seq_puts(m, " eva"); if (cpu_has_htw) - seq_printf(m, "%s", " htw"); + seq_puts(m, " htw"); if (cpu_has_xpa) - seq_printf(m, "%s", " xpa"); + seq_puts(m, " xpa"); if (cpu_has_loongson_mmi) - seq_printf(m, "%s", " loongson-mmi"); + seq_puts(m, " loongson-mmi"); if (cpu_has_loongson_cam) - seq_printf(m, "%s", " loongson-cam"); + seq_puts(m, " loongson-cam"); if (cpu_has_loongson_ext) - seq_printf(m, "%s", " loongson-ext"); + seq_puts(m, " loongson-ext"); if (cpu_has_loongson_ext2) - seq_printf(m, "%s", " loongson-ext2"); - seq_printf(m, "\n"); + seq_puts(m, " loongson-ext2"); + seq_puts(m, "\n"); if (cpu_has_mmips) { seq_printf(m, "micromips kernel\t: %s\n", @@ -182,7 +182,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) raw_notifier_call_chain(&proc_cpuinfo_chain, 0, &proc_cpuinfo_notifier_args); - seq_printf(m, "\n"); + seq_puts(m, "\n"); return 0; } -- 2.31.1