From: Joe Perches Subject: Re: [PATCH 1/2] iommu: dmar: replace printks with appropriate pr_*() Date: Mon, 04 Jun 2012 15:15:37 -0700 Message-ID: <1338848137.18442.2.camel@joe2Laptop> References: <1338845342-12464-1-git-send-email-ddutile@redhat.com> <1338845342-12464-2-git-send-email-ddutile@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1338845342-12464-2-git-send-email-ddutile-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Donald Dutile Cc: chrisw-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, suresh.b.siddha-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, mingo-X9Un+BFzKDI@public.gmane.org, dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Mon, 2012-06-04 at 17:29 -0400, Donald Dutile wrote: > Replace printk(KERN_* with pr_*() functions. Please add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt before any include and remove the embedded PREFIX from each printk > diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c [] > break; > } > pdev = pci_get_slot(bus, PCI_DEVFN(path->dev, path->fn)); > if (!pdev) { > - printk(KERN_WARNING PREFIX > - "Device scope device [%04x:%02x:%02x.%02x] not found\n", > + pr_warn(PREFIX "Device scope device" > + "[%04x:%02x:%02x.%02x] not found\n", > segment, bus->number, path->dev, path->fn); Please don't split any format string. You removed a space between the scope device and an open bracket. It's OK for format strings to exceed 80 chars.