Received: by 10.223.176.5 with SMTP id f5csp1072652wra; Fri, 2 Feb 2018 10:41:44 -0800 (PST) X-Google-Smtp-Source: AH8x227vycJJafPT/GrRF6niCtbZ7agqcT2raXbmdwxeA7wBSOXbREetVLxncBV33ZoQy8vgairD X-Received: by 10.98.69.82 with SMTP id s79mr40779117pfa.214.1517596904532; Fri, 02 Feb 2018 10:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517596904; cv=none; d=google.com; s=arc-20160816; b=cNYzV1VID4leKoPpEy6HY/jEJDeORb95135utuFhsUoHSLh2lbD/IB3oGt1ifF9xUz qPJpJdQB5bdHbdl73zPWr6/Z+ScSc67k3LfC7kvDPV8uPn+u3dyRiRS5B9uE/WnPv9hX b/bBJ9Mm7IwsTND9QpKo3I+LK2HptIcWB7ThgPi/eAB62nbIRKI3uDvQj+4jy1xM9FNI a9aW3a77b/QI2nDHfu9Sb8oyxS8D3Yl8H15FuYin9TELmirPiPo1S4bYs7S33TmWd8Pe oS6b5xyN7BlHNDaJop0LiYkGG41T8vx4nqiN5KxzhF4/zKobiRhVHcLiwFfptafhl9ma nF0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=9QYZME/Gus0USdXW3EqPp80Enb3nm6HAvRSZ5Lkjl9U=; b=Gh9JyXQH1f93pa3QWll9lTVJ7LEmTjORLwSjG13iscvfT8JWen+SOcrGe8/m9RIK3i hEetMJPHq19JHFGrnQMYZxL0U7D/368wj+RKATXu4iZ6cU2pkwqmdT36ILNpNvZf/sZg HRRiUGyqLvMR/4cjSG2JtuYehjUgSuPeder4nf747yDnUef9kyAbYbmlGQdteJd5LHii eDocDLMPUbiRyn+af44IvGan4FSua3LlFUJJ2MdMLNd7+fvqx9HGzp0hGb/JvUOygXhl F0x0g+SNh927ZUH8t9ZjP8hhWtvIwo4hbrzSz5nd8htmM7rYKMQfHuxGL02m282jnQEt WNig== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25-v6si2263839plj.438.2018.02.02.10.41.28; Fri, 02 Feb 2018 10:41:44 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755164AbeBBSke (ORCPT + 99 others); Fri, 2 Feb 2018 13:40:34 -0500 Received: from mga14.intel.com ([192.55.52.115]:10384 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755009AbeBBSj7 (ORCPT ); Fri, 2 Feb 2018 13:39:59 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Feb 2018 10:39:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,450,1511856000"; d="scan'208";a="200912632" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga006.fm.intel.com with ESMTP; 02 Feb 2018 10:39:57 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 95E06367; Fri, 2 Feb 2018 20:39:56 +0200 (EET) From: Andy Shevchenko To: Sudip Mukherjee , linux-kernel@vger.kernel.org, Nikola Ciprich Cc: Andy Shevchenko Subject: [PATCH v1 5/8] parport: Convert printk(KERN_WARN) to dev_warn() Date: Fri, 2 Feb 2018 20:39:52 +0200 Message-Id: <20180202183955.85453-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180202183955.85453-1-andriy.shevchenko@linux.intel.com> References: <20180202183955.85453-1-andriy.shevchenko@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dev_warn() will print device name with associated driver, no need to keep this open coded. While here, adjust indentation in the rest of dev_dbg() calls. Signed-off-by: Andy Shevchenko --- drivers/parport/parport_serial.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c index 7cf847e6e660..e30b1a1d769d 100644 --- a/drivers/parport/parport_serial.c +++ b/drivers/parport/parport_serial.c @@ -568,10 +568,9 @@ static int parport_register(struct pci_dev *dev, const struct pci_device_id *id) int irq; if (priv->num_par == ARRAY_SIZE (priv->port)) { - printk (KERN_WARNING - "parport_serial: %s: only %zu parallel ports " - "supported (%d reported)\n", pci_name (dev), - ARRAY_SIZE(priv->port), card->numports); + dev_warn(&dev->dev, + "only %zu parallel ports supported (%d reported)\n", + ARRAY_SIZE(priv->port), card->numports); break; } @@ -587,12 +586,12 @@ static int parport_register(struct pci_dev *dev, const struct pci_device_id *id) irq = dev->irq; if (irq == IRQ_NONE) { dev_dbg(&dev->dev, - "PCI parallel port detected: I/O at %#lx(%#lx)\n", + "PCI parallel port detected: I/O at %#lx(%#lx)\n", io_lo, io_hi); irq = PARPORT_IRQ_NONE; } else { dev_dbg(&dev->dev, - "PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n", + "PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n", io_lo, io_hi, irq); } port = parport_pc_probe_port (io_lo, io_hi, irq, -- 2.15.1