Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1549671lqp; Mon, 15 Apr 2024 09:29:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVT1a4VEsUq5KAdELVGvTJWnt7RJrwRNzYwPhggpayRJfaGQxGy6At0AnQLCdDZRNuClLfXamHRWdJXtyHMLgFZ+VlWGq6wwaWndTd1VQ== X-Google-Smtp-Source: AGHT+IHRNCQ8DfOppeGnH8qjF49VxlDZcBUMILQkp551xclJIaVhdqbdvOLbg9VDH6Y4xD0vR3s+ X-Received: by 2002:a05:622a:247:b0:434:89d9:1b44 with SMTP id c7-20020a05622a024700b0043489d91b44mr14615309qtx.41.1713198586223; Mon, 15 Apr 2024 09:29:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713198586; cv=pass; d=google.com; s=arc-20160816; b=sZbMXSyNbZeeja2nyDz7hjBarIEHb+DLDdl2aAvuFW7+sGHuQV3yITCvgBGe3J93Wq xVRtib/0l+mbSMPJEB2tJWdec07Aa189COJQys4S+eIlEql01Jk9GWjVzavQU9kQCJIk n/Zgfkou3N703fmYXSsCw1gNnCDwTVuIuM2C6Hk4wM6hs8gUcYXIP0XXoapYtDonJuxM f0YPNiN92rPNOfx+Ps+fuRCGvdoN50O7/0CSGdK4whahkPOo7J/zjGjvat15Mle2PcCs 30alybrPBdZfE8RP/6sU+S+ck8qVTpqcSdZxV2kaTnpUvAD4jj/yV1wp0OEhLXSPhBHp SYmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id; bh=IkgrZVQXCncRdnfRmIrfazz6Y6Jljm55j8mkEgulTmg=; fh=jTN613Hmf5kFUSj8xJ0R+fk2U9IgLUxpH4DleiIRzSs=; b=Lx0yDe/IaXuRsKxas7QKTJg//6zjCOm05SQUzTHfr4CbU3o9wVe1+K2njUhE08DRCK meNIsYio1MFogVbtGa8fUQKAEgXkhcN6MPJe4Jxj3p8JHbjA8sudC7HHO3Ze11uYxXus JXTkc5wQFdpGdr4quFEDz/3NWKmF7PcNZVrd1zH/OvykY8ItldgGAgPIKZWPR4KCxg7C qq3Wn0wbHm5r5W8x39UybrGQfGj4jvICcQpHkwY0WEYJ5N/UmJCP57iMhDH3lSMcvbh2 Ji0b4c2F8OvrgEo7f/awqXH4BUoZdFUlVNoB2T3BxKBL39F8suZSgE0Iw1kRSoolfvH6 R2jw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=perches.com); spf=pass (google.com: domain of linux-kernel+bounces-145550-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145550-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e2-20020ac86702000000b00434b359d61esi9661469qtp.434.2024.04.15.09.29.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 09:29:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145550-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=perches.com); spf=pass (google.com: domain of linux-kernel+bounces-145550-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145550-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EAA401C228F0 for ; Mon, 15 Apr 2024 16:29:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB3BB81203; Mon, 15 Apr 2024 16:29:39 +0000 (UTC) Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) (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 D2C8C2E40F; Mon, 15 Apr 2024 16:29:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713198579; cv=none; b=iSRm1VXpzowxJQJN3GkOY031QnQ06IWRnw8Wo/Zq/ANzDErdo3rj6wdJhY8c8JxeuQ6RrNAiaEPxbWN8eXIj9vVDbOvoce6NXpO+F1YOFOvsug8uLsnGAx2towXDMtUQP+a16Dt7yl+d+81Z3Z1txx6up7gGy8pvsdWp0NaGomY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713198579; c=relaxed/simple; bh=0d4mUTktj6a/nMXxUroqj2dPrXs/QRAOPXoexv5bCYk=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=QtFC4FNogk1OgmkZWj7TyOTMHsuo7AzMrHCVlIKZwgo7wh6uKzHmZzunF1YICyNvbGT7Lxy60UfgBWEo2fDyZyw4Ip+dNKjoVEzZDk6CUS/918p0Nl/Qpk/I4Tgyx/kY8eQLZdz9e9OwDCtBu1TzpyW8nztHie3rl7/UrCv4bTU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com; spf=pass smtp.mailfrom=perches.com; arc=none smtp.client-ip=216.40.44.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=perches.com Received: from omf12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id ECEA4A060C; Mon, 15 Apr 2024 16:20:02 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf12.hostedemail.com (Postfix) with ESMTPA id 25AC719; Mon, 15 Apr 2024 16:20:00 +0000 (UTC) Message-ID: <03f357e6c16d13924b705513446e4eac37e38a99.camel@perches.com> Subject: Re: [PATCH] PCI/AER: Print error message as per the TODO From: Joe Perches To: Abhinav Jain , mahesh@linux.ibm.com, oohall@gmail.com, bhelgaas@google.com, linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: skhan@linuxfoundation.org, javier.carrasco.cruz@gmail.com Date: Mon, 15 Apr 2024 09:19:59 -0700 In-Reply-To: <20240415161055.8316-1-jain.abhinav177@gmail.com> References: <20240415161055.8316-1-jain.abhinav177@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Queue-Id: 25AC719 X-Stat-Signature: 77e1p4uka3bqt7e7ii1uor3ehdgef6hp X-Rspamd-Server: rspamout05 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+mInIM+0CNX9KiE6s0STSXDV9arJlA+oo= X-HE-Tag: 1713198000-709223 X-HE-Meta: U2FsdGVkX18fRK6pvB4sqjrD+Hoi7VifTu0b/kmK1fLRq+6B3315wuHjJaVxwsG3ryHMye27wG92hwxaE84zKznFV1zdpaNmTJ2xB8DEbZshNqhjvOu22m9mjY8RFR1Hka4ZE9kfGrep6llNfaDZ9WmRCRfYMRWqkhV3SuYQsPxaG+BJVarT1Q4Du+CM6d08EhHIODww0VeyqdEAvD4KUqWuL47rgeAgHsM15SJy/OWPpDQS+3/c45vgN9oMm8wPJ87a9a82vl2KAfLVrGD/kgMIuNwILrYGNmJ6/e7U5TwlI43oa3xcOPtGoMKVLmhX On Mon, 2024-04-15 at 16:10 +0000, Abhinav Jain wrote: > Add a pr_err() to print the add device error in find_device_iter() [] > diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c [] > @@ -885,7 +885,8 @@ static int find_device_iter(struct pci_dev *dev, void= *data) > /* List this device */ > if (add_error_device(e_info, dev)) { > /* We cannot handle more... Stop iteration */ > - /* TODO: Should print error message here? */ > + pr_err("find_device_iter: Cannot handle more devices. > + Stopping iteration"); You are adding unnecessary whitespace after the period. String concatenation keeps _all_ the whitespace. The format is fine on a single line too. Something like: pr_notice("%s: Cannot handle more devices - iteration stopped\n", __func__);