Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2503985pxb; Fri, 29 Oct 2021 02:46:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYuYIiFRK4AjsrJaX4T0EKxxy6WPijBKZMaUXYvb/+WgUt+jZZXhujjTwodGH5wi0CsYrw X-Received: by 2002:a17:907:9714:: with SMTP id jg20mr12287273ejc.318.1635500806139; Fri, 29 Oct 2021 02:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635500806; cv=none; d=google.com; s=arc-20160816; b=W2xcaJbyonDiMq1J+S2/ohkT0eAEkTa6lft4QxeCHv+XVLeCbEWXmdC0e4nZDf5K2/ TMuyRbrjgGi6rnrls0FlkUMglrBK1Im+uqPq6Ae19PCHwLa13kFYccdR/fKx+iGupjE1 uLQ3kmvcGB1zgeTTQAxOEgm1bFr2Hee7Be1z74F+8AW3WS+k2+QH2lq5i8Xv5Xhjz4+p IvMmvnMDHh6j1VqpxvZYI4lApfVSzpY/0s6lRnvDrkHjEmChVFgeE6ozOInFw1ReZx50 xyaK/DxfftTOvLocNohmcw+e8FXjapN/6tgljV4A/E0+YSjhda1DIu27DpLPZEB8JUsS narA== 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=pPdyZOx7hgkGiGUypu1zW3ZUYZjMgFOAv4Yv0mkP/2w=; b=z5dJfRdzFCKWyAUq2Fv6cvVYkS+CixO4cgVU66X3W9qeu6FUw5azINkEZJdgYdG8Qo Oyeon8NKI2nJVc1wANUnQaEuwY6zu355kqpGuyc3QDAOWwEDrzttiaqYqQp7lVTbnVQH Ygc1FqFCN2rmkBXqBjunTg9JXUMD+7N70VD5F7fp4/01nOrUwsH2O6DnMsWTO7y0/ufE 6twgBUP/1L5I4R4sBDi7zCusckKBz52GEeAuEr5p07wLeHreJXrn6+kZhBL+Wu4AdQ/Q lfFJNV54ZWjniCuyge7VwrTBJI1LvkPRN3yLyOIXxCOL5ypIDztAkDrZG7dkaQ3GGnsp 05Hw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si6740562ejo.366.2021.10.29.02.46.20; Fri, 29 Oct 2021 02:46:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231694AbhJ2Jo0 (ORCPT + 99 others); Fri, 29 Oct 2021 05:44:26 -0400 Received: from mga04.intel.com ([192.55.52.120]:50910 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231667AbhJ2JoX (ORCPT ); Fri, 29 Oct 2021 05:44:23 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10151"; a="229360076" X-IronPort-AV: E=Sophos;i="5.87,192,1631602800"; d="scan'208";a="229360076" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2021 02:41:53 -0700 X-IronPort-AV: E=Sophos;i="5.87,192,1631602800"; d="scan'208";a="498845489" Received: from rdutta-mobl3.gar.corp.intel.com (HELO lkp-bingo.ccr.corp.intel.com) ([10.255.31.247]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2021 02:41:50 -0700 From: Li Zhijian To: dave@stgolabs.net, joel@joelfernandes.org, josh@joshtriplett.org, mathieu.desnoyers@efficios.com, paulmck@kernel.org, rostedt@goodmis.org, rcu@vger.kernel.org Cc: philip.li@intel.com, lizhijian@cn.fujitsu.com, jiangshanlai@gmail.com, linux-kernel@vger.kernel.org, Li Zhijian Subject: [PATCH 4/6] scftorture: always log error message Date: Fri, 29 Oct 2021 17:40:27 +0800 Message-Id: <20211029094029.22501-5-zhijianx.li@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211029094029.22501-1-zhijianx.li@intel.com> References: <20211029094029.22501-1-zhijianx.li@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Generally, error message should be logged anyhow. Signed-off-by: Li Zhijian --- kernel/scftorture.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/scftorture.c b/kernel/scftorture.c index 5fb15492999b..8ef7888d78cc 100644 --- a/kernel/scftorture.c +++ b/kernel/scftorture.c @@ -41,8 +41,7 @@ #define VERBOSE_SCFTORTOUT(s, x...) \ do { if (verbose) pr_alert(SCFTORT_FLAG s "\n", ## x); } while (0) -#define VERBOSE_SCFTORTOUT_ERRSTRING(s, x...) \ - do { if (verbose) pr_alert(SCFTORT_FLAG "!!! " s "\n", ## x); } while (0) +#define SCFTORTOUT_ERRSTRING(s, x...) pr_alert(SCFTORT_FLAG "!!! " s "\n", ## x) MODULE_LICENSE("GPL"); MODULE_AUTHOR("Paul E. McKenney "); @@ -583,14 +582,14 @@ static int __init scf_torture_init(void) if (weight_single1 == 0 && weight_single_rpc1 == 0 && weight_single_wait1 == 0 && weight_many1 == 0 && weight_many_wait1 == 0 && weight_all1 == 0 && weight_all_wait1 == 0) { - VERBOSE_SCFTORTOUT_ERRSTRING("all zero weights makes no sense"); + SCFTORTOUT_ERRSTRING("all zero weights makes no sense"); firsterr = -EINVAL; goto unwind; } if (IS_BUILTIN(CONFIG_SCF_TORTURE_TEST)) scf_sel_add(weight_resched1, SCF_PRIM_RESCHED, false); else if (weight_resched1) - VERBOSE_SCFTORTOUT_ERRSTRING("built as module, weight_resched ignored"); + SCFTORTOUT_ERRSTRING("built as module, weight_resched ignored"); scf_sel_add(weight_single1, SCF_PRIM_SINGLE, false); scf_sel_add(weight_single_rpc1, SCF_PRIM_SINGLE_RPC, true); scf_sel_add(weight_single_wait1, SCF_PRIM_SINGLE, true); @@ -621,7 +620,7 @@ static int __init scf_torture_init(void) nthreads = num_online_cpus(); scf_stats_p = kcalloc(nthreads, sizeof(scf_stats_p[0]), GFP_KERNEL); if (!scf_stats_p) { - VERBOSE_SCFTORTOUT_ERRSTRING("out of memory"); + SCFTORTOUT_ERRSTRING("out of memory"); firsterr = -ENOMEM; goto unwind; } -- 2.32.0