Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4016428rwi; Sat, 22 Oct 2022 03:57:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7m//78cEDFNeIPuV/I+8FjxdD7yFpuwIpyp6zA7hTpQeA90btGiBzFivNxwXZNRj8HtHKF X-Received: by 2002:a05:6402:e9b:b0:454:351c:c222 with SMTP id h27-20020a0564020e9b00b00454351cc222mr21862143eda.216.1666436230209; Sat, 22 Oct 2022 03:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666436230; cv=none; d=google.com; s=arc-20160816; b=ePrMo5xkMFyPbfV2fHKID6OQeygqiDJKNvgUa/TxJ6LhKWv3HbT90YOsTz8cx2Bw5t 14uKrSUI2cyRoGVNdR8fnwmGV40tqVQWHThZ/VBd2+ZAMsPR1qjRgWYksHsrHZoWae0I tFlIWHRg+9+zjsMwU9UOnFipQmregLroQ57NxBXY2//EI0ZHCTxjVfATQE+5yPMuaTDy WBcFd+pTe71cFxwFr51zOGfL2JlaG/FFobL4fPSBm8kYfxsQXLp/idqTUAZ6UZrV/gZe Z0GJ+lh2+ZPAaKbe3ikU9OEQ1L1yVxXtmDcDOToAVjNgPr+F6AlZ0XsvCAtXihMACFjd NrNw== 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=IDzOiwoGqdbo0O4PTJnx7diFzr8IhP8wMQ9FAAsC7v4=; b=onHxyxYAj9FoA0fWppmsaSgt8ai4cdX1wgbjunXvouuLc7ZMWO/aS4l6AZwghgLMpr d3mrodxP9V6erWhdOnL1XAhi0tD3mVhRmTAzWQRThlvY11I33McmoThcVMuakDAh/amH BUYw/x2tLw909GM8h8uJkekWPM7QhC7w3+eJQ9c/KA2kVVQYh/zJztXaaOEN7Ij2Trlz mEihIYXpNGZJBkpEMEU9265NXXlRoMIpqqEr5Pd9X6CoGR6bmUQBhDF9hZSl55UW2I6F Cc21VXJFyqDUTTrr+s+wrhvLMGY9XayOL70Ahte+Uhn95zQbsBuYYcGRa7B85CKlVRa+ LfVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv20-20020a17090760d400b00791a67e4c00si11372233ejc.835.2022.10.22.03.56.43; Sat, 22 Oct 2022 03:57:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229876AbiJVKPj (ORCPT + 99 others); Sat, 22 Oct 2022 06:15:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230272AbiJVKPO (ORCPT ); Sat, 22 Oct 2022 06:15:14 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE6CCB8789; Sat, 22 Oct 2022 02:32:19 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Mvbg30047zHv2Y; Sat, 22 Oct 2022 17:30:54 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 22 Oct 2022 17:31:00 +0800 Received: from ubuntu1804.huawei.com (10.67.174.61) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 22 Oct 2022 17:30:59 +0800 From: Yang Jihong To: , , , , , , , , , , CC: Subject: [PATCH 3/3] perf config: Add missing newline on pr_warning call in home_perfconfig Date: Sat, 22 Oct 2022 17:27:35 +0800 Message-ID: <20221022092735.114967-4-yangjihong1@huawei.com> X-Mailer: git-send-email 2.30.GIT In-Reply-To: <20221022092735.114967-1-yangjihong1@huawei.com> References: <20221022092735.114967-1-yangjihong1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.61] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix missing newline on pr_warning call in home_perfconfig. Before: # perf record File /home/yangjihong/.perfconfig not owned by current user or root, ignoring it.Couldn't synthesize bpf events. After: # perf record File /home/yangjihong/.perfconfig not owned by current user or root, ignoring it. Couldn't synthesize bpf events. Signed-off-by: Yang Jihong --- tools/perf/util/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c index 3f2ae19a1dd4..658170b8dcef 100644 --- a/tools/perf/util/config.c +++ b/tools/perf/util/config.c @@ -556,7 +556,7 @@ static char *home_perfconfig(void) config = strdup(mkpath("%s/.perfconfig", home)); if (config == NULL) { - pr_warning("Not enough memory to process %s/.perfconfig, ignoring it.", home); + pr_warning("Not enough memory to process %s/.perfconfig, ignoring it.\n", home); return NULL; } @@ -564,7 +564,7 @@ static char *home_perfconfig(void) goto out_free; if (st.st_uid && (st.st_uid != geteuid())) { - pr_warning("File %s not owned by current user or root, ignoring it.", config); + pr_warning("File %s not owned by current user or root, ignoring it.\n", config); goto out_free; } -- 2.30.GIT