From patchwork Mon Dec 13 21:42:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Perches X-Patchwork-Id: 407682 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBDLhRk1031704 for ; Mon, 13 Dec 2010 21:43:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757523Ab0LMVm3 (ORCPT ); Mon, 13 Dec 2010 16:42:29 -0500 Received: from mail.perches.com ([173.55.12.10]:2572 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751246Ab0LMVm2 (ORCPT ); Mon, 13 Dec 2010 16:42:28 -0500 Received: from Joe-Laptop.home (unknown [192.168.1.162]) by mail.perches.com (Postfix) with ESMTP id 800212436C; Mon, 13 Dec 2010 13:42:26 -0800 (PST) From: Joe Perches To: Kyle McMartin , Helge Deller , "James E.J. Bottomley" Cc: Randy Dunlap , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] parisc: lba_pci: Use vsprintf extension %pR for struct resource Date: Mon, 13 Dec 2010 13:42:19 -0800 Message-Id: <681d00d0482c5c1e030c88e3e3522b9ca90bd871.1292276119.git.joe@perches.com> X-Mailer: git-send-email 1.7.3.3.398.g0b0cd.dirty In-Reply-To: References: Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 13 Dec 2010 21:43:28 +0000 (UTC) diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c index 3aeb327..b1b6644 100644 --- a/drivers/parisc/lba_pci.c +++ b/drivers/parisc/lba_pci.c @@ -749,24 +749,21 @@ lba_fixup_bus(struct pci_bus *bus) continue; if (res->flags & IORESOURCE_IO) { - DBG("lba_fixup_bus() I/O Ports [%lx/%lx] -> ", - res->start, res->end); + DBG("lba_fixup_bus() I/O Ports [%pR] -> ", res); res->start |= lba_portbase; res->end |= lba_portbase; - DBG("[%lx/%lx]\n", res->start, res->end); + DBG("[%pR]\n", res); } else if (res->flags & IORESOURCE_MEM) { /* ** Convert PCI (IO_VIEW) addresses to ** processor (PA_VIEW) addresses */ - DBG("lba_fixup_bus() MMIO [%lx/%lx] -> ", - res->start, res->end); + DBG("lba_fixup_bus() MMIO [%pR] -> ", res); res->start = PCI_HOST_ADDR(HBA_DATA(ldev), res->start); res->end = PCI_HOST_ADDR(HBA_DATA(ldev), res->end); - DBG("[%lx/%lx]\n", res->start, res->end); + DBG("[%pR]\n", res); } else { - DBG("lba_fixup_bus() WTF? 0x%lx [%lx/%lx] XXX", - res->flags, res->start, res->end); + DBG("lba_fixup_bus() WTF? [%pR] XXX", res); } /*