Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp197770pxk; Wed, 16 Sep 2020 01:54:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEaHHACWFtWgtfw8dmqxhxjfLYKtQCLP4FYxf/Z9sMs/wrADh/iVwCJacLekyGaGJ3O0LP X-Received: by 2002:a17:906:4754:: with SMTP id j20mr25097231ejs.293.1600246443903; Wed, 16 Sep 2020 01:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600246443; cv=none; d=google.com; s=arc-20160816; b=Z/wy9O+9OWaQ/skR+JdxrKvJH95ttWXkK1GVK2o4Uwd51TcsBOKuRaYpD4KFTHUuCQ T/eNPOL8hSCRa+Mwt7M6gSRWCMe4LSf2elD7d4AxtdlggQslCOQXwK6reQW9vVnetyGg +P8Qg1SAS256q7yvShVah8HXpFYZWOGSwHyWSLUMeLzlXH7y6ciMKv46JrbDvoPAtK82 WxfJA88EbUC+koS5no4a8M8VAZIuUeZlucUg0q/7VUSwonifBI7HV/NYDUUfijVwYRhK R+3M+A8xYZ73RUizEYPNaaC1YVbBCoUr+JNc70jrS2WTy+v++i3ypDZ5gnbmAnriaw4X SvTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=adeUbCwmXpoLfdzTPFgA+7AYswE3jK2zibxWXmMzW/s=; b=HtCS0IusRijY6wyPL3XuVC0Wid0ss40jLpyi54OBtXVoJ7ka5i821cXQqnWKBmymuS V2k86ieRpFDLHtcTGB8TfvjCXdnfCr64caCs1pfe10W83IKGItdBIdAE01H59Q/ZYz/S Ndn/taj2kbaCqrSu7nTuIa5By0Xn6YG6uv4V0zTOqaJXwA/ak0Z4tNKtwEfD5yETvAhj 3b+cCVr/rdwlGQ6H5e4kPo+B8j1vDygOTfk8UYsPmb7m5A+URS6/XF15Tz4j2Wjp3Vlr AzgobCP4SXoNbgzmF1FJO0ieK3fYj5en/rFcWlmbLQt0idIwDxAVAw2mVRbCOKeJFHrX My1w== 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 l8si11709783edr.396.2020.09.16.01.53.41; Wed, 16 Sep 2020 01:54:03 -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 S1726685AbgIPIwi (ORCPT + 99 others); Wed, 16 Sep 2020 04:52:38 -0400 Received: from smtp23.cstnet.cn ([159.226.251.23]:44706 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726652AbgIPIwb (ORCPT ); Wed, 16 Sep 2020 04:52:31 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-03 (Coremail) with SMTP id rQCowADHTkMu0mFf1moAAA--.2725S2; Wed, 16 Sep 2020 16:51:58 +0800 (CST) From: Xu Wang To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de Cc: linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] stats: Replace seq_printf with seq_putc Date: Wed, 16 Sep 2020 08:51:52 +0000 Message-Id: <20200916085152.6223-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: rQCowADHTkMu0mFf1moAAA--.2725S2 X-Coremail-Antispam: 1UD129KBjvdXoWrKF18tr1DKFWxGw4rKF1rJFb_yoW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nvoduhdfq/1tbiCwYBA1z4jcJLnQABsz Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc()". Signed-off-by: Xu Wang --- kernel/sched/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/stats.c b/kernel/sched/stats.c index 750fb3c67eed..0818fe03407a 100644 --- a/kernel/sched/stats.c +++ b/kernel/sched/stats.c @@ -37,7 +37,7 @@ static int show_schedstat(struct seq_file *seq, void *v) rq->rq_cpu_time, rq->rq_sched_info.run_delay, rq->rq_sched_info.pcount); - seq_printf(seq, "\n"); + seq_putc(seq, '\n'); #ifdef CONFIG_SMP /* domain-specific stats */ -- 2.17.1