From patchwork Mon Feb 12 10:24:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Onkarnarth X-Patchwork-Id: 772361 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8162E38FBE for ; Mon, 12 Feb 2024 10:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734134; cv=none; b=iuC52UDQ9Vzs2C6ZA2csv6ieuHEDOPP64TQ3s14CFUmVA01QdsWGHgClzGg46zhZ27sHQ12kasesBYIgpNhG1H8jJSufSBtFaQwT17jtP5kfLUV97WiSNKXcz0bK99bFy5q5bOUCcEWgDoQzpQcflKJCKQfGhh+9TTFqW4aiy0A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734134; c=relaxed/simple; bh=oEN+dwSDlX4Wf7XHSwlhkxtlCib+wj4mwpgMAlW6/PU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=nYuLiXw9YBYgGXgVB16vWlj2d2K6l48gGeASmqqz7Mqg104WDsK4OczXgYOBHJ2dTEGRM1DeyfhMfrgMMdp6X8JRF/lpZcJguaO1w9ddmbWWrHBtQLqOGep/vKwiX7JhNKkgq4EErHmEiwx/fYblrhcfJYIwcZDAckCtEoev04M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=haSv7bqJ; arc=none smtp.client-ip=203.254.224.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="haSv7bqJ" Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20240212103524epoutp02e25aa57c21a276ce48e0da7bc6cb9903~zFyNQ-pV-2348023480epoutp02d for ; Mon, 12 Feb 2024 10:35:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20240212103524epoutp02e25aa57c21a276ce48e0da7bc6cb9903~zFyNQ-pV-2348023480epoutp02d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707734124; bh=hE+eDG2GxhJPpLaElEHIROodVE8STJFl+Q2ht+hx3xE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=haSv7bqJZE4ZeskYWr0X7iOFvchScxYZGegfCG956YjPFhLb6iHZ8GJWKbh8XKcHu hDp5eBt6RKU1cohYqdWR5bbv5p6RhRdUWkb067LDGbUXqorYxOf1TKHfsxQXL+5YS9 YWZZkXRllnp7zbGpqbMmjFKcwS2AlFRbcItpke/c= Received: from epsmges5p3new.samsung.com (unknown [182.195.42.75]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20240212103523epcas5p34acfeaf02bab59f0263b944dfb9d320c~zFyMS6TqR1499914999epcas5p3d; Mon, 12 Feb 2024 10:35:23 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 79.07.09672.A64F9C56; Mon, 12 Feb 2024 19:35:22 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20240212102425epcas5p176017ab3c94d39af29bbeaa72a43a996~zFooENVFL3127531275epcas5p1a; Mon, 12 Feb 2024 10:24:25 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240212102425epsmtrp188e8822434c2a4d1347dabb50dbbc173~zFooDNwj10772407724epsmtrp1j; Mon, 12 Feb 2024 10:24:25 +0000 (GMT) X-AuditID: b6c32a4b-39fff700000025c8-f4-65c9f46a0f1b Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 1C.88.07368.9D1F9C56; Mon, 12 Feb 2024 19:24:25 +0900 (KST) Received: from localhost.localdomain (unknown [107.109.224.44]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240212102421epsmtip22276b86b88307151f59ab9ad28d86385~zFokQfgB_1200912009epsmtip2I; Mon, 12 Feb 2024 10:24:21 +0000 (GMT) From: Onkarnarth To: rafael@kernel.org, lenb@kernel.org, bhelgaas@google.com, viresh.kumar@linaro.org, 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, bristot@redhat.com, vschneid@redhat.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, r.thapliyal@samsung.com, maninder1.s@samsung.com, helgaas@kernel.org, Onkarnath , Stanislaw Gruszka Subject: [PATCH v2 2/2] cpufreq/schedutil: print errors with %pe for better readability of logs Date: Mon, 12 Feb 2024 15:54:04 +0530 Message-Id: <20240212102404.1900708-2-onkarnath.1@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240212102404.1900708-1-onkarnath.1@samsung.com> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDKsWRmVeSWpSXmKPExsWy7bCmum7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4+eO/NP8v93 o+mXfu+a3zjl8xuXx/v2+cZe8zZ2myFv8ujp7n4GTg/Btj1+FU82H9vlqfrub0PXXLZzSxnd 5r2MTEpuSb6lleEb5+eRn13ys+iGm7vQjrzjcoLxmesMz191i/vj2a3EUpyRaKjFXFScCACn w033QwMAAA== X-CMS-MailID: 20240212102425epcas5p176017ab3c94d39af29bbeaa72a43a996 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20240212102425epcas5p176017ab3c94d39af29bbeaa72a43a996 References: <20240212102404.1900708-1-onkarnath.1@samsung.com> From: Onkarnath Instead of printing errros as a number(%ld), it's better to print in string format for better readability of logs. Signed-off-by: Onkarnath Reviewed-by: Stanislaw Gruszka Reviewed-by: Valentin Schneider --- v1->v2: Updated subject as per file history kernel/sched/cpufreq_schedutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index eece6244f9d2..2c42eaa56fa3 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -671,7 +671,7 @@ static int sugov_kthread_create(struct sugov_policy *sg_policy) "sugov:%d", cpumask_first(policy->related_cpus)); if (IS_ERR(thread)) { - pr_err("failed to create sugov thread: %ld\n", PTR_ERR(thread)); + pr_err("failed to create sugov thread: %pe\n", thread); return PTR_ERR(thread); }