Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1571806imm; Tue, 22 May 2018 06:13:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqMCDO9UdCmmWUnjiONWrH+VPpac8N+P8hq4A+QZZCRMrms45m9j4VHvN/dU6cg5nFZBBoZ X-Received: by 2002:a65:4b02:: with SMTP id r2-v6mr18847854pgq.82.1526994807739; Tue, 22 May 2018 06:13:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526994807; cv=none; d=google.com; s=arc-20160816; b=SBLRJNiiEMFAh4p2+RZHl0LJDT5bhVDkg64WjWY+KWW+yKZwI3NrRsF0vXscSSPDxr wB6fgCpIyi5Vz6gr6+ohzNsPRuNFYV/bBTJ3GhpTK2T5pyHHms13lBwUIjbl+ueyxBkJ 3A+6NuVRggbaYuToHQP8P/a2oU5xp2IbeHH75r6/6JIcMyKsK6iFX+Klqd/GuHNQHIqc bmcwW/XqmAQYOiYMr3w0UqG8XMC8C6IHj/YC/jqYHx6+sctlijeM1m2hwl0HoKGSOHEn +8j0u2GvIO4BNYLPYbp5TSAlphdjtf4b2IU1NUNl4EUNWxgxuIb8bks8OXXlMfV31nPd uRLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dkim-signature:arc-authentication-results; bh=orBzZRy0n9zuzyV05B593kJpmnfQSuxmWeDKqToMNeI=; b=ANOPnpGjfxICsQceB/7UHjRvKaAp5BgB1ypx2eSHhjEqHuZ5EFxwiLi9YBc0GBJkDo eTqwzx/QPrBABwx/F7rb3LDVrKHDWH9z6uy0UCRiqpCUaaVjJ/TatrfuQOkL2YWx0w2A 9naF0YheBtJp20NY/Ja580MAgLVE2xZdJiHerELHfSxK4usLo4twXDSqaUuVKVnWE+Cc mNI9hd2TSFs3mSPMGBDnXdxufYKqyFsPaxM+3YCoaVbl3hbB37x+wTqQSv8wi3x6zPTg ZrEfh4ELtjnGmclHILDMsgDRlxbd1RH8yuFbvmI7IsntB2bldJso4bqnzUBv05JPRYtM +2CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hFV6YgWT; 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 n8-v6si2578402pgr.342.2018.05.22.06.13.12; Tue, 22 May 2018 06:13:27 -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=hFV6YgWT; 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 S1751651AbeEVNLt (ORCPT + 99 others); Tue, 22 May 2018 09:11:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:39462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbeEVNLo (ORCPT ); Tue, 22 May 2018 09:11:44 -0400 Received: from localhost (173-24-227-115.client.mchsi.com [173.24.227.115]) (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 B14AD20876; Tue, 22 May 2018 13:11:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526994703; bh=VdJHlNvt+IXLPKTYH+ZNSOp4lnqITM440viU7wCrHO8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=hFV6YgWTJTWxSaiBbUqVxxzqsDqWt+/JR+EllECVzfBOgeB6N5k4At+rFGDKtp91S RbR/Ka8AuekZnjA6F5p29BJvbyh/hH00oe1iHcRlF4c9qhXjC2aVgAbAKDlVZj3bL4 Fw2qz1WbuLvhbnB8sKOxhGhNkOXqPaoXLbehcBPY= Subject: [PATCH v1] MIPS: PCI: Use dev_printk() when possible From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: Ralf Baechle , James Hogan , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Date: Tue, 22 May 2018 08:11:42 -0500 Message-ID: <152699470263.162686.16975145205315900817.stgit@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <152699466671.162686.1029992586935534102.stgit@bhelgaas-glaptop.roam.corp.google.com> References: <152699466671.162686.1029992586935534102.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"); return -EINVAL; } if (r->flags & IORESOURCE_IO) @@ -274,8 +272,7 @@ static int pcibios_enable_resources(struct pci_dev *dev, int mask) cmd |= PCI_COMMAND_MEMORY; } if (cmd != old_cmd) { - printk("PCI: Enabling device %s (%04x -> %04x)\n", - pci_name(dev), old_cmd, cmd); + pci_info(dev, "enabling device (%04x -> %04x)\n", old_cmd, cmd); pci_write_config_word(dev, PCI_COMMAND, cmd); } return 0;