Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp272565pxu; Wed, 2 Dec 2020 22:51:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUL4ctLG1BuPbWrtUb+FeL/YDCVuVApyuKKGIiXX98a5GsDj7ZgVBGiiobk2EIdgl7dmYB X-Received: by 2002:a17:906:f894:: with SMTP id lg20mr1235082ejb.348.1606978264316; Wed, 02 Dec 2020 22:51:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606978264; cv=none; d=google.com; s=arc-20160816; b=iG2spf5T1R6xRGaQhWlMu51OD0zfb0bs0n5QLgN417hB/mzWKUy9IwuEY3gR8Y8CBl TupF8ugp5lpHCG2t0mpw8ESHcy/Sl/f7YmAantlKYYIfZ/gk/xZP+VQFSU6ieawTWYZS a6jMMsS+N8ZV7bOAR0Kgs0w9DnKIeAjv+3+PxqGm7HLcylrB9ctO2gdJjoaQXpucvNQ1 iWhV18eQRVltjrVjlKE8st/t2IaCSefUuw6q7Yf8VkHJc28MiGor36FHd71YvTxudb+/ KhXtrXnf5p4j4lmV3rOOdrEkHL9nJE4ooi2LcKxVyHSyKpOk6Yo2YnFKkTMR3IOWZAAl fFTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:from:cc:to; bh=kf/+qmtW3M9b6p+QDiieNui0Ov7fTwaHGr5S04J62sk=; b=U8uG7dzTRHbe9HcuKeEF6wh/PutrLZ7rDwp8fW1YnP90KRyP2w6coo6QHPOi02Oluw hKAQ+ee+nGI5930VtOgXobJ9+p9AViNH8K+sH6TWtPlTxVmzBmfwgaM93+p0/kf8ZkqH Mk4ITRcYMbmmhtAV538o2JN10GWxgNBQa1PkMaOqnwHI9trEA/gTQSSESjqQ/Wgoc8Um /IaNcmDTW1Hb753nJW7qKgqr1BMv2V/t9E2RnFF+LTBUSFpgEHyd+6lLHcPm07nwatwL r+jgMkEqmJQOo2nu0GhQyxcazMb4aLwTQbXMJHZKuARKul9C5FB0Bdr4sASrbGC1PNbt ooOA== 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 gw26si535324ejb.537.2020.12.02.22.50.41; Wed, 02 Dec 2020 22:51:04 -0800 (PST) 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 S1729768AbgLCGrR (ORCPT + 99 others); Thu, 3 Dec 2020 01:47:17 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:8925 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729680AbgLCGrR (ORCPT ); Thu, 3 Dec 2020 01:47:17 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CmmZR3xBZz781v; Thu, 3 Dec 2020 14:46:07 +0800 (CST) Received: from [10.174.176.199] (10.174.176.199) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Thu, 3 Dec 2020 14:46:23 +0800 To: , , , , , , , , , CC: Shiyuan Hu , Hewenliang From: Yunfeng Ye Subject: [PATCH 1/2] sched: Move '\n' to the prior seq_printf in show_schedstat() Message-ID: <66f73a23-a273-7dff-4202-adc61c3152c8@huawei.com> Date: Thu, 3 Dec 2020 14:46:23 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.176.199] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A little clean up that moving the '\n' to the prior seq_printf. and remove the separate seq_printf which for line breaks. No functional changes. Signed-off-by: Yunfeng Ye --- kernel/sched/stats.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/sched/stats.c b/kernel/sched/stats.c index 750fb3c67eed..e99403df3f90 100644 --- a/kernel/sched/stats.c +++ b/kernel/sched/stats.c @@ -30,15 +30,13 @@ static int show_schedstat(struct seq_file *seq, void *v) /* runqueue-specific stats */ seq_printf(seq, - "cpu%d %u 0 %u %u %u %u %llu %llu %lu", + "cpu%d %u 0 %u %u %u %u %llu %llu %lu\n", cpu, rq->yld_count, rq->sched_count, rq->sched_goidle, rq->ttwu_count, rq->ttwu_local, rq->rq_cpu_time, rq->rq_sched_info.run_delay, rq->rq_sched_info.pcount); - seq_printf(seq, "\n"); - #ifdef CONFIG_SMP /* domain-specific stats */ rcu_read_lock(); -- 2.18.4