lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <681d00d0482c5c1e030c88e3e3522b9ca90bd871.1292276119.git.joe@perches.com>
Date:	Mon, 13 Dec 2010 13:42:19 -0800
From:	Joe Perches <joe@...ches.com>
To:	Kyle McMartin <kyle@...artin.ca>, Helge Deller <deller@....de>,
	"James E.J. Bottomley" <jejb@...isc-linux.org>
Cc:	Randy Dunlap <randy.dunlap@...cle.com>,
	linux-parisc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 2/5] parisc: lba_pci: Use vsprintf extension %pR for struct resource

Signed-off-by: Joe Perches <joe@...ches.com>
---
 drivers/parisc/lba_pci.c |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

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);
 			}
 
 			/*
-- 
1.7.3.3.398.g0b0cd.dirty

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ