Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2502025pxb; Fri, 29 Oct 2021 02:43:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW9Oe8DaZL+E0ljfLMOfxW2T9k/eCF+lnZ4NZoHJWw5dHhUOAQb0o8GSBcNryY5f4C8t7H X-Received: by 2002:a63:9f1a:: with SMTP id g26mr7359776pge.170.1635500625440; Fri, 29 Oct 2021 02:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635500625; cv=none; d=google.com; s=arc-20160816; b=ZoQAdBwvWEVMo6wcM8I8NHFE+ILwV5HgQkIPaIxIhbM/mygJQ4v9RnTX2sZJQ4zB+d fFgcwQhvC4NfwI4B32s4mbxklgTtr4UJO8hUGO9SFdgl+fX36bwhCLIi2ht8gUZvCPSi 03kMG7rLpf+HnsWAeBUktqkgUpCvdlWZn/1Bl9KWnaDITeIC3Am/NQA7ByeJaKhdhI+D EMloRtNY9HR91/yxy3HNXTr+wcBl7ZdS4ZLPneSDA50LbOXsB29TWQsovm4ODzuRSr3d oYhLFHkePYZfnHH+YDVEpxaILQ2myatEjRP3mIB4LtqzsH8fuAevc2YvOwkqsUZBQYKt QhoA== 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=s7NkqMGy8T/Yf8udJfIwKPbXCG47D7TgpI7tRwA3qH0=; b=VLyv+sZUKMQIvNP5s6mbS8Zwf1nGsOaNUAC5CHn1ElhiFhGBDnTuR9m/bf58TLFUVb ZX0tH6J1eQ7PNmnt0GryJ0K+Pwx296ZxCr3PQRuLFRlfzRanh+i0hUzhuUk9dvjeOR8o NVx0QCD8wNqwu2hUxfHSTLrxeA2glwnHA6MLej/RhcnBos0ysmR9rIWYfDMsNqsqnTFo VLKuxrhXWsYWGYfd6cvliAzDbvlVQo2PG81wOHzYB/kLb021FZyTRg/HWnH7oThSKuBX P2xwwE7LNNnUZxg6ppMhDyOOp3W4Fufo6/KNAkS2vtT5AX7zySrxbKt9SuISSm1sOBVc TxRA== 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 x6si6965969pll.178.2021.10.29.02.43.32; Fri, 29 Oct 2021 02:43:45 -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 S231579AbhJ2JoO (ORCPT + 99 others); Fri, 29 Oct 2021 05:44:14 -0400 Received: from mga04.intel.com ([192.55.52.120]:50887 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231559AbhJ2JoN (ORCPT ); Fri, 29 Oct 2021 05:44:13 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10151"; a="229359969" X-IronPort-AV: E=Sophos;i="5.87,192,1631602800"; d="scan'208";a="229359969" 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:41 -0700 X-IronPort-AV: E=Sophos;i="5.87,192,1631602800"; d="scan'208";a="498845430" 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:38 -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 1/6] refscale: add missing '\n' to flush message out Date: Fri, 29 Oct 2021 17:40:24 +0800 Message-Id: <20211029094029.22501-2-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 add '\n' to macros directly like what torture does to flush message for each calls Signed-off-by: Li Zhijian --- kernel/rcu/refscale.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/kernel/rcu/refscale.c b/kernel/rcu/refscale.c index f055d168365a..ffe9e44c886c 100644 --- a/kernel/rcu/refscale.c +++ b/kernel/rcu/refscale.c @@ -44,7 +44,10 @@ pr_alert("%s" SCALE_FLAG s, scale_type, ## x) #define VERBOSE_SCALEOUT(s, x...) \ - do { if (verbose) pr_alert("%s" SCALE_FLAG s, scale_type, ## x); } while (0) + do { \ + if (verbose) \ + pr_alert("%s" SCALE_FLAG s "\n", scale_type, ## x); \ + } while (0) static atomic_t verbose_batch_ctr; @@ -54,12 +57,12 @@ do { \ (verbose_batched <= 0 || \ !(atomic_inc_return(&verbose_batch_ctr) % verbose_batched))) { \ schedule_timeout_uninterruptible(1); \ - pr_alert("%s" SCALE_FLAG s, scale_type, ## x); \ + pr_alert("%s" SCALE_FLAG s "\n", scale_type, ## x); \ } \ } while (0) #define SCALEOUT_ERRSTRING(s, x...) \ - do { pr_alert("%s" SCALE_FLAG "!!! " s, scale_type, ## x); } while (0) + do { pr_alert("%s" SCALE_FLAG "!!! " s "\n", scale_type, ## x); } while (0) MODULE_LICENSE("GPL"); MODULE_AUTHOR("Joel Fernandes (Google) "); @@ -842,7 +845,7 @@ ref_scale_init(void) goto unwind; } - VERBOSE_SCALEOUT("Starting %d reader threads\n", nreaders); + VERBOSE_SCALEOUT("Starting %d reader threads", nreaders); for (i = 0; i < nreaders; i++) { firsterr = torture_create_kthread(ref_scale_reader, (void *)i, -- 2.32.0