Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2381597lqo; Mon, 20 May 2024 04:17:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUh40Mj0VryhObc8wC4f9t5WCKcpqYF3aHQWlxws+blZZQwBIYTRa1NLmMOh+ZIgVH9D/IpWAgM31TyYi8gVvb/UWoYHe9kPqlyjReS0w== X-Google-Smtp-Source: AGHT+IHjhj6LbCNWFgkcpqhUxqcJF9MkWeXaqEdlEzW3nX9QnfeSiUOZUhxlyF3St+jV0HXmegas X-Received: by 2002:a05:6902:4f0:b0:de6:482:c7d5 with SMTP id 3f1490d57ef6-dee4f355d00mr25243362276.43.1716203876616; Mon, 20 May 2024 04:17:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716203876; cv=pass; d=google.com; s=arc-20160816; b=IbFMUq0A4j6jNkTLACzMfPxpX2a+ke7JNEkHsomUMDKQfxMfN0BFePYDT2pY7ItA25 YhYzJP1g2rXaClEQgVZc8VUGnWsgc6+9pSgss7MPNogDXe14St8XwUUsdnlQ0a3vYg7Q jQHxrp+S529M8cLQXKqB9pzilbi+fVIbn9GW8tJlHBnDOwM1TdG6IW3YBfoNhmBikuqW g0lv5j20rtUVQ68f/oBkn3Q1IShkh4dF2z1U1CAplztUiz6BYOZ53jUERSe9CcVudBZj VHgA8pONVBF+i/gwicBGnmOQ+Couy43X4/EoBDHjfFLvSMpEL9ysH3Jk59UIc/+CM4Lu 1tnQ== 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:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DtbotRrxlfh+3BepWZTeI8VdjCOrKh6fu9usGat9L9E=; fh=6Q+r3YuFQvAq6g/txnBUl7Q/ZpzB2OLfK9N6uCI1rSg=; b=mje2Tnr1CJq+4eMwiXOIWEHkd6rSN7ZAUgs+GWD6ijWB+CcMO1fC8gr2FGOg3pdz5+ 9DOaP9MQlHg2ATMDTC/PxV1BykTxow3rys6wk89YeQYv3ClisROTywe5FbCFnl1fi7fB TmSaSA+NdqyJzQjIq9yA0mhbUUpz80jjVhXtvJzC8YQnUho/rkMV/OtCt2a8IFzZTwlW UwtSLe7EOl0kRfL8M2qDIFNQYfqvWdTPBG3U1Hv9cquNgbXfb54JEAH5wL/c2ZbKM3d7 AOE99M6gzvUBdEJPILOkhg7MdeBYMZBbq7yHtgIK9s3Lct6DqW/UkQ5E3H+sBk4UIeWE P+AQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=g3O5Mq+L; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-183649-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183649-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a9d464780esi22113886d6.229.2024.05.20.04.17.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 04:17:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183649-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=g3O5Mq+L; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-183649-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183649-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3E2261C21D92 for ; Mon, 20 May 2024 11:17:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6AA00535DC; Mon, 20 May 2024 11:17:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="g3O5Mq+L" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 A980820EB; Mon, 20 May 2024 11:17:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716203866; cv=none; b=ALkH851idkie/29alWcD0/Lgh5EkEd5Nz/DYiOMLFDdqPjV0wF/MKf0jYHKngT1y6Rdg9zplHNhpPMRtgfvyG/c85wTAri3MtKttIXtqDQ34WUtdhNOaStDuLDMv9Hbk5XKJ6+VBpX3p4RMYKl5ojRBy+RuM1mLjrKGXY05p6T0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716203866; c=relaxed/simple; bh=Tr8/wwJz4pOtQRmig0+vpz4m6s/lwh1H78YLrzvodNA=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rQ4oiY5HeEZwbge6aFAUJV548Qmn3DkohjUV1y+ILCRN1zIC4by7lNwyfDLHhaztLeM8hguwxmtopc7JMtdG+7eQ0faZnEkmn1m+20+NWJwgp1xh1LrlCUvritu65OWrIUdS1iPf6d5v7e+kvkyai6RMAi42kmj0avOctatAhPk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=g3O5Mq+L; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44KBGaTh127346; Mon, 20 May 2024 06:16:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716203796; bh=DtbotRrxlfh+3BepWZTeI8VdjCOrKh6fu9usGat9L9E=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=g3O5Mq+LDVkAiOTfu89f+qA4Hc5CXAw8hwO6CDpVZOWCWTiaPXueaSCSB4aV5yfpo 7kuGcJqh/HJywyzhyxgs+Jn/UDIqkdj825k8R7YYhVLHbxsqxQUNfeptJZiZDPQQU8 /Iwl/AjrCGfhiuyQLi1IETRhlb3zpxdwUt3cYlao= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44KBGahd004860 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 20 May 2024 06:16:36 -0500 Received: from flwvowa02.ent.ti.com (10.64.41.53) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 20 May 2024 06:16:36 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by flwvowa02.ent.ti.com (10.64.41.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2507.34; Mon, 20 May 2024 06:16:35 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 20 May 2024 06:16:35 -0500 Received: from localhost (uda0492258.dhcp.ti.com [172.24.227.9]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44KBGZ84034645; Mon, 20 May 2024 06:16:35 -0500 Date: Mon, 20 May 2024 16:46:34 +0530 From: Siddharth Vadapalli To: Onkarnath CC: Siddharth Vadapalli , "bhelgaas@google.com" , "vigneshr@ti.com" , "lpieralisi@kernel.org" , "kw@linux.com" , "robh@kernel.org" , "yue.wang@Amlogic.com" , "neil.armstrong@linaro.org" , "khilman@baylibre.com" , "jbrunet@baylibre.com" , "martin.blumenstingl@googlemail.com" , "thomas.petazzoni@bootlin.com" , "shawn.guo@linaro.org" , "lchuanhua@maxlinear.com" , "srikanth.thokala@intel.com" , "songxiaowei@hisilicon.com" , "wangbinghui@hisilicon.com" , "manivannan.sadhasivam@linaro.org" , "thierry.reding@gmail.com" , "jonathanh@nvidia.com" , "hayashi.kunihiko@socionext.com" , "mhiramat@kernel.org" , "pali@kernel.org" , "toan@os.amperecomputing.com" , "daire.mcnamara@microchip.com" , "conor.dooley@microchip.com" , "marek.vasut+renesas@gmail.com" , "shawn.lin@rock-chips.com" , "heiko@sntech.de" , "nirmal.patel@linux.intel.com" , "jonathan.derrick@linux.dev" , "kishon@kernel.org" , "jdmason@kudzu.us" , "dave.jiang@intel.com" , "rafael@kernel.org" , "lenb@kernel.org" , "mahesh@linux.ibm.com" , "oohall@gmail.com" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-omap@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-amlogic@lists.infradead.org" , "linux-arm-msm@vger.kernel.org" , "linux-tegra@vger.kernel.org" , Rohit Thapliyal , Maninder Singh Subject: Re: [PATCH 1/1] PCI : Refactoring error log prints for better readability Message-ID: References: <4ec3b167-9324-41d3-a086-74ca001b9042@ti.com> <20240517105923.2406246-1-onkarnath.1@samsung.com> <20240520104358epcms5p50e00970ef70f66e87ceaaa893fc0ba67@epcms5p5> 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: <20240520104358epcms5p50e00970ef70f66e87ceaaa893fc0ba67@epcms5p5> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On Mon, May 20, 2024 at 04:13:58PM +0530, Onkarnath wrote: > Hi, > > [...] > > >>Similar question as above regarding converting "failed, ret" to > > >>"failed:". Is this a new convention that is expected to be followed, > > >where all errors are supposed to have "failed: %pe", rather than custom > > >statements? Please let me know if this has already been discussed > > >elsewhere. > > > Bjorn suggested to make all errors consistent. > > and I thought printing error like below: > > > "gpio request failed: -ENOMEM". > > > Seems more suitable than > > > "gpio request failed, ret (-ENOMEM)". > > > If it needs to be changed in other format, please let me know, i will make all > errors in that format. > > and will share v2. Thank you for clarifying. It appeared to me that the suggestion was limited to the %d to %pe conversion. The existing implementation looks good in that case. Regards, Siddharth.