Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp866643imm; Wed, 23 May 2018 06:50:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpUdTuQ/Lgev9xLPIkEM54qPOS1x+4ji+jxsY29njMJl/OfHmHpaqgERE0TvnwKTApk3e0U X-Received: by 2002:a17:902:10c:: with SMTP id 12-v6mr3093447plb.252.1527083409709; Wed, 23 May 2018 06:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527083409; cv=none; d=google.com; s=arc-20160816; b=k+h4948G+cHoaHsZakbCzk5iuQZCj0hAJ90PWZX2R+Z1enVEKneNq74WeFwjrLYKlR EbLMOXrV4ba3BxWPo8CAeuXW0ZE57fMv0Bg4t9vBfPeJp7xgaCs1sCjDVpJq5ucRr4WI bEUXcAtnwRfaXlXl8olY5dTFzZxWqg/5YwLxHF5Drr49wnJsuv4G/lpghZWSN55BJQ/s g29drydjj1SozyNxL5gioigBmrZkFdZzQf27selWIec7AmugVjcBPpAFEaKXLLJrEQVe b0CgvYBz5m5B/HtC0jXt7xrUYYQJSNT7sGvYMdaRPDwCF9RWXTWttVrTW6dhd2AasMM/ 7Q5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=wRo4q8uGlhEGagRfZICL4DX6uQ9FZe0E0laG4hYfVek=; b=UJJAMd7WMwg06ajHhAHu+D8q463TCZtECdmd+Ds8g1+tj0mV31cqSTCqnRWYAlh4XL oeq5Wpl0pB5qk2T8BWHHecTPHqb5P9HLYWSr2NdWxWjvkjcTAGlUaU9WLwiNsV4U74pS Qk1UGedzXMyHYOwddIeq4KQsJ7lg5yH84hSH3KQ6mjLjKinVKRrSXu+/yipZAqWWmRXp dUoSA6kgAO/vD4Heg4W5TbcAKGLeRSCKKvDJoWpq41OSUE6HbXZaYidglI/oK6zg1UVA APfnfBFyXFZNQ/WjSnID+YqsHRp8+Qz2NDlfPBpZoceVucU6Ne322+fO2eavvNfSiiin 3Myg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=17pABcOf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 98-v6si20555100pls.180.2018.05.23.06.49.44; Wed, 23 May 2018 06:50:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=17pABcOf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933103AbeEWNsu (ORCPT + 99 others); Wed, 23 May 2018 09:48:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:48878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932976AbeEWNst (ORCPT ); Wed, 23 May 2018 09:48:49 -0400 Received: from localhost (173-25-171-118.client.mchsi.com [173.25.171.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB05720870; Wed, 23 May 2018 13:48:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527083328; bh=7ZfPDd4vPE+T5qEKDqL9+sAWueWTPWkflYowYJ2a3nM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=17pABcOfWhtE5IC+yvTA95RFN3YQn/1yU8xavEKS36ZAO2C5ItnPZQrsrrCK7eXuB xTcJnHbiEyM+y3QQrWlWsdP6YN+hoD/D6wS1H4kLRm38uw7g2FU3xo2woxz3biCtmT 5np5QsOD745ttOh7IwaiVMsMLFKsgxyz7djjBX5E= Date: Wed, 23 May 2018 08:48:47 -0500 From: Bjorn Helgaas To: James Hogan Cc: linux-pci@vger.kernel.org, Ralf Baechle , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] MIPS: PCI: Use dev_printk() when possible Message-ID: <20180523134847.GB150632@bhelgaas-glaptop.roam.corp.google.com> References: <152699466671.162686.1029992586935534102.stgit@bhelgaas-glaptop.roam.corp.google.com> <152699470263.162686.16975145205315900817.stgit@bhelgaas-glaptop.roam.corp.google.com> <20180523081447.GA15645@jamesdev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180523081447.GA15645@jamesdev> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 23, 2018 at 09:14:48AM +0100, James Hogan wrote: > On Tue, May 22, 2018 at 08:11:42AM -0500, Bjorn Helgaas wrote: > > From: Bjorn Helgaas > > > > Use the pci_info() and pci_err() wrappers for dev_printk() when possible. > > > > Signed-off-by: Bjorn Helgaas > > --- > > arch/mips/pci/pci-legacy.c | 7 ++----- > > 1 file changed, 2 insertions(+), 5 deletions(-) > > > > diff --git a/arch/mips/pci/pci-legacy.c b/arch/mips/pci/pci-legacy.c > > index 0c65c38e05d6..73643e80f02d 100644 > > --- a/arch/mips/pci/pci-legacy.c > > +++ b/arch/mips/pci/pci-legacy.c > > @@ -263,9 +263,7 @@ static int pcibios_enable_resources(struct pci_dev *dev, int mask) > > (!(r->flags & IORESOURCE_ROM_ENABLE))) > > continue; > > if (!r->start && r->end) { > > - printk(KERN_ERR "PCI: Device %s not available " > > - "because of resource collisions\n", > > - pci_name(dev)); > > + pci_err(dev, "can't enable device: resource collisions\n"); > > The pedantic side of me wants to point out that you could wrap that line > after the comma to keep it within 80 columns. Done, thanks! > Either way though: > Acked-by: James Hogan > > Cheers > James