Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1545300rdb; Wed, 31 Jan 2024 01:43:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOpxTzv7R+xga4meT8kvBA/tQyM7f0vLstVpCmKtyaMKHgyKZbKDIkaSuo2ZRIUW7i6fiP X-Received: by 2002:a05:6402:1c0d:b0:55c:e69d:5d52 with SMTP id ck13-20020a0564021c0d00b0055ce69d5d52mr603286edb.24.1706694179692; Wed, 31 Jan 2024 01:42:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706694179; cv=pass; d=google.com; s=arc-20160816; b=TAeiHnXmzSKhYj7OyXs4SkNueRFaAdiYHD97yR69x7O02M7X+mgSIhJwM//kUTUYX6 SySDJO0BlWZ7uxVOgWo6sGXsGzP/3RyZf4j/VkOYCIfkmVOpkwLsVUObWzvaJ0F8HTAi 2bsWEwvHJxybGaHcV/VeCn5RFI1ODm8C9p8ByutAzdRN6+5ZrUVd4D8iz4pkLf8OjsM6 RLCipE3JiLoMx6YllmSKQBZ1JuUBJmgu+ueMG9KNH6hTolkWR50l2SpeQxO/sflfMOw2 S9oWWq/gzgFfSry5cW7ZbnTKogJIY/evcthpO5B6Y3mymjbZjBOO6saXUSbMeAaDB/JU COeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:cc:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=EZbNHR6ck1QofV3f95xFoGCYdWl5tA8U30j32cS8j8s=; fh=QoWuSr6E46dmFzJGUUnI1zy4xntu70l1J1UtemdwsxY=; b=hqa0zWiwCRDjAQeMbqIuRF6Iawu9ilDG4Vc4Vs+9ttysXIzgYvMUCkWxRRrzdjy+6U ls6RRyEsDCHhX34L3NesfuXyIuD3AnOT2Nzhl+/WzUQ27WlOae0cR8DTVKop2+SUotz0 abvn8aEmAa4H2oIO9vOSkZy7btGhmHmVDrdV1rTODGWmdLD15nE0l7R/6pq962r/lUTn H92tgawo10LlBZkXj9QTdGVcCnTqebGiLuoJR55QDXEKuwALv6+3+dRRbsZYzXFFczem mcNn1HWtFIG4DuAT8dg6c5a3zTueqT/IolgYItLuLO08BRloKcymX2mrK3/+3ie3Ci/T UnOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-46154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com X-Forwarded-Encrypted: i=1; AJvYcCXSIG3aq6FD72T8Z5kEUlQI4xR3y2VRPip3wCP7OrrlX6Q++Q4r3s/o5oYpJV6qadlmyKdwmww9ZJTEw8Iaq5JB3PGOjZxg1JgvBQUPsQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r11-20020a056402234b00b0055f458c0be3si1442429eda.374.2024.01.31.01.42.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:42:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-46154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7319C1F24C0E for ; Wed, 31 Jan 2024 09:42:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5AD769955; Wed, 31 Jan 2024 09:42:39 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 339756994C; Wed, 31 Jan 2024 09:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706694159; cv=none; b=XpTBihI6AVp6F8W+uud8FlStHkKRFd0vHTXfK484Oiyfkk4NcSwZM6MgghLevQLTAcowsBOWveIOidxeLLQyYbctV6DM716dudgwzMsgwHFZHjIPptKymtUFWTkbbpecZMEvUY4ctpPJLSZxDa1aH7mUOpjrv5hn2Zna2n1E8N4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706694159; c=relaxed/simple; bh=/jxUhiLW2aIZc2umOiEd/PmyEOR+s6ajMKSA4LwywJw=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=EvOqbkh10YTLkvpdmDz3cShPl39JK2/Q4MyQIEpp+Or6Ycx3cLV1AtC/iK5yndjecYFlcu9qBmn9NoN8f/1XC38b2m9IAkBc73Ef1jHhMMt3NBE3jQ5doCe7OlC+qeQnZEyf4oBi3xyawVYO3bdXhRxkLYJnGTSF6JqO6uQMDtU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A6053DA7; Wed, 31 Jan 2024 01:43:18 -0800 (PST) Received: from [192.168.1.216] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 736AC3F738; Wed, 31 Jan 2024 01:42:32 -0800 (PST) Message-ID: <4b69537a-db1c-5940-b096-04eb818f2ca8@arm.com> Date: Wed, 31 Jan 2024 09:42:30 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v1 1/2] perf tsc: Add missing newlines to debug statements To: Ian Rogers References: <20240131063048.492010-1-irogers@google.com> Content-Language: en-US Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, tchen168@asu.edu, Michael Petlan From: James Clark In-Reply-To: <20240131063048.492010-1-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 31/01/2024 06:30, Ian Rogers wrote: > It is assumed that debug statements always print a newline, fix two > missing ones. > > Signed-off-by: Ian Rogers > --- > This patch was inspired by bad debug output in: > https://lore.kernel.org/linux-perf-users/CAGjhMsg_bVKJ_zfsLUR32+oZwGDr3OiBHV_BJ3QtFjyKAs7Sgg@mail.gmail.com/ > --- > tools/perf/arch/x86/util/tsc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/perf/arch/x86/util/tsc.c b/tools/perf/arch/x86/util/tsc.c > index 9b99f48b923c..e2d6cfe21057 100644 > --- a/tools/perf/arch/x86/util/tsc.c > +++ b/tools/perf/arch/x86/util/tsc.c > @@ -33,7 +33,7 @@ static double cpuinfo_tsc_freq(void) > > cpuinfo = fopen("/proc/cpuinfo", "r"); > if (!cpuinfo) { > - pr_err("Failed to read /proc/cpuinfo for TSC frequency"); > + pr_err("Failed to read /proc/cpuinfo for TSC frequency\n"); > return NAN; > } > while (getline(&line, &len, cpuinfo) > 0) { > @@ -48,7 +48,7 @@ static double cpuinfo_tsc_freq(void) > } > out: > if (fpclassify(result) == FP_ZERO) > - pr_err("Failed to find TSC frequency in /proc/cpuinfo"); > + pr_err("Failed to find TSC frequency in /proc/cpuinfo\n"); > > free(line); > fclose(cpuinfo); Reviewed-by: James Clark