Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp212641rdh; Tue, 13 Feb 2024 14:41:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXDyV1ucET7B0fQrU6jyhSKm5VORmaqMWDpCT53zmFlAz/HWJqoegdjtIJsB15dqrvhUX7UNlvTGviVNAn5Ry0Spa6H/d/C0ie+3DlglA== X-Google-Smtp-Source: AGHT+IE2lfjKkSDWjTDpGIDuXUBizRMc9dmSAvCHORv2DgIHMIIr5fhdR4NqhoTtH0jmNjMolKXT X-Received: by 2002:a17:90b:3850:b0:298:9688:56 with SMTP id nl16-20020a17090b385000b0029896880056mr1089668pjb.9.1707864062823; Tue, 13 Feb 2024 14:41:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707864062; cv=pass; d=google.com; s=arc-20160816; b=ED0C1NGkxMI0shYN7KlKneCuPrlu1dQPghok5KLpmAaElUdz7fgnSmqzWVWky32hSJ WkdtKqwRfF9yN0Q9axEJIdp1p/bux+tHN7yrN4uObkeuuN8V+3o8SX+XMsRlyD4b22lJ 4NBRVd9r0vVVcDHwYB3dCMBaQXa7SNWFjC4VpkGlZBm2D1zKZQglhVS/khxr8L14Hk5y L7CIEBGVYc+6acaTwgDlELrHf6wGxLVbIp9Rb0lLeby0Hj1yMSuHHnKQKLdLCYvyBZD7 DQA662FlxakQ6+H2KKLczinYUijH77xIoU2MKdkH3eqqq5ieYYp5rzx/KpBDzBYmzxfK xf8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=Ebbo82iP5yjBI3mX/vOtdiWCOP4NTzLOTF2oWVXUv3c=; fh=7pvsUgFoaNNjuNvnYMW70WZbXPaePFEtnzGutNMxjhw=; b=Z5vhVEbv2S53GagWRThX+21s2+7+HkzmusSN8KgbWt5DaMJeLptjOcNNdu6BTECVjW /+tP3rANm9Vazy8atesF82C2ku66OFOB5JBqmJ+IJimU5+mhZInLHUJohMfDSE9I9VqP GfN2jyU5lLzOIkaw7uF7ay+PyzDkTLOuG3Q0yjwMwHCiZ3FMJ1OhGKt0rmlnHkg4GpnN UGPK1dkYsOyj045ld/6DScnAkcz1RBYGu6Y9SAKCMc7adcUL/HJg/c2HvTaeexEYEChv +VkPRVJf0EFitgtN8ZNt0xp0m19lBau7uK1njUCmxjrhojhRzKUM1yNAkzDpDt7gmg+h hGOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dMpBcMB0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64446-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWgF9AFo3KJDncJlXTxxetQ1ItCjyWu6F6oqiQ5b7fLZAhPT2IpfxA0j8EccTuHEpcjNirQvTIOB2BO0BTg/5Ry+i3d23PKYh3xQluwXg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id pi5-20020a17090b1e4500b00298b24ce7a9si62085pjb.5.2024.02.13.14.41.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 14:41:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64446-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dMpBcMB0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64446-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7AF5EB30E8E for ; Tue, 13 Feb 2024 22:17:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B55663110; Tue, 13 Feb 2024 22:14:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dMpBcMB0" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7549D62170; Tue, 13 Feb 2024 22:14:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707862447; cv=none; b=CXt8fXaevsUSPR9UmdLaj6CrWBUDGPX9pV/FIJJSvYnW6XVEU/ej0DfRwr8hmyjezoweUVmccFVRtkzrHQADAoIG5QKTZ1MoGq8bfr0OCXKpq72Hu2TdkNuWoVYxfZOnXSeU4xTF/yyrNhZmZPtw6hRVgfYA5xYCbSM59HSdhaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707862447; c=relaxed/simple; bh=ENAzlVwIn8iATwoFyUwcJu/H29SD7Tn0lylWDcYosr8=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=b3Vl7MokJVK+UD6fSQ+3xIxIsqjRzTMK9uY1+6knEpiohr45LSCYAtnhjWsWWYBLN/YtoX/qlwVhOpTjVzJknEJPPDK336OEzU/NQr9hJE43swB6tSWivsRPh44xdt6t6EvpDvAHzKHxQoVItAAeEWR86qFLfXm/2BoOkA0cEYk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dMpBcMB0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC6C5C433C7; Tue, 13 Feb 2024 22:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707862447; bh=ENAzlVwIn8iATwoFyUwcJu/H29SD7Tn0lylWDcYosr8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=dMpBcMB0bqcExy+SMPIE6oNVejB8baAtAjplWDwOD2B6k8kGwjuI0/NQl+O8tzRF7 QujJNg/mpCJHqHhYHSQTUfuMjJda8qKGQ8Kf1ExJ2q8RrPgMXWnIy94zy/afn/87cX OR9JP308n6DDYd9RTjclQSqM0ktukBbp6gJPyYLrahIaMBVqcjsAwptVqOrhKRTkeF QyH63FRx3olmW3W/RRvgx0pHw1k2NG/bgQYU9RTz1eZA+P/7f3SasoNgw8NzXbjf6x q3emff/jhAkt5aWFIVpSwNYt0BtCT0zaRNHd3Tacp84EUAAy4R3UK3cYUDCaDWbaKe jWs5VIvX3/4rw== Date: Tue, 13 Feb 2024 16:14:05 -0600 From: Bjorn Helgaas To: Onkarnarth Cc: 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, 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, Stanislaw Gruszka Subject: Re: [PATCH v3 1/2] ACPI: use %pe for better readability of errors while printing Message-ID: <20240213221405.GA1230483@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240213074416.2169929-1-onkarnath.1@samsung.com> On Tue, Feb 13, 2024 at 01:14:15PM +0530, Onkarnarth wrote: > From: Onkarnath > > As %pe is already introduced, it's better to use it in place of (%ld) for > printing errors in logs. It would enhance readability of logs. Here are some more candidates that I see regularly: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/base/dd.c?id=v6.7#n590 Something like: git grep "\(_info(\|_warn(\).*%d" finds a ton of them (plus a lot of unrelated hits, of course). If you were to do this for drivers/pci/, I would want them all for the whole directory in a single patch, and I would take the opportunity to make minor changes so the style is more consistent, e.g., "... failed (%pe)" or something. Bjorn