From: Joe Perches <joe@perches.com>
To: Jiri Kosina <trivial@kernel.org>
Cc: Kyle McMartin <kyle@mcmartin.ca>, Helge Deller <deller@gmx.de>,
"James E.J. Bottomley" <jejb@parisc-linux.org>,
linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 10/14] drivers/parisc: Use printf extension %pR for struct resource
Date: Fri, 12 Nov 2010 13:38:00 -0800 [thread overview]
Message-ID: <4b2cfc9a82fa77a23a76db463e100b1a7016beee.1289597644.git.joe@perches.com> (raw)
In-Reply-To: <cover.1289597644.git.joe@perches.com>
Using %pR standardizes the struct resource output.
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/parisc/dino.c | 13 +++++--------
drivers/parisc/hppb.c | 6 ++----
2 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/drivers/parisc/dino.c b/drivers/parisc/dino.c
index d9f5148..d30a809 100644
--- a/drivers/parisc/dino.c
+++ b/drivers/parisc/dino.c
@@ -599,15 +599,13 @@ dino_fixup_bus(struct pci_bus *bus)
}
- DBG("DEBUG %s assigning %d [0x%lx,0x%lx]\n",
+ DBG("DEBUG %s assigning %d [%pR]\n",
dev_name(&bus->self->dev), i,
- bus->self->resource[i].start,
- bus->self->resource[i].end);
+ &bus->self->resource[i]);
WARN_ON(pci_assign_resource(bus->self, i));
- DBG("DEBUG %s after assign %d [0x%lx,0x%lx]\n",
+ DBG("DEBUG %s after assign %d [%pR]\n",
dev_name(&bus->self->dev), i,
- bus->self->resource[i].start,
- bus->self->resource[i].end);
+ &bus->self->resource[i]);
}
}
@@ -809,8 +807,7 @@ dino_bridge_init(struct dino_device *dino_dev, const char *name)
result = ccio_request_resource(dino_dev->hba.dev, &res[i]);
if (result < 0) {
printk(KERN_ERR "%s: failed to claim PCI Bus address "
- "space %d (0x%lx-0x%lx)!\n", name, i,
- (unsigned long)res[i].start, (unsigned long)res[i].end);
+ "space %d (%pR)!\n", name, i, &res[i]);
return result;
}
}
diff --git a/drivers/parisc/hppb.c b/drivers/parisc/hppb.c
index 815db17..898208e 100644
--- a/drivers/parisc/hppb.c
+++ b/drivers/parisc/hppb.c
@@ -74,10 +74,8 @@ static int hppb_probe(struct parisc_device *dev)
status = ccio_request_resource(dev, &card->mmio_region);
if(status < 0) {
- printk(KERN_ERR "%s: failed to claim HP-PB "
- "bus space (0x%08llx, 0x%08llx)\n",
- __FILE__, (unsigned long long) card->mmio_region.start,
- (unsigned long long) card->mmio_region.end);
+ printk(KERN_ERR "%s: failed to claim HP-PB bus space (%pR)\n",
+ __FILE__, &card->mmio_region);
}
return 0;
--
1.7.3.1.g432b3.dirty
next prev parent reply other threads:[~2010-11-12 21:39 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-12 21:37 [PATCH 00/14] " Joe Perches
2010-11-12 21:37 ` [PATCH 01/14] arch/frv: " Joe Perches
2010-11-12 21:37 ` [PATCH 02/14] arch/mips: " Joe Perches
2010-11-22 20:28 ` Ralf Baechle
2010-11-12 21:37 ` [PATCH 03/14] arch/powerpc: " Joe Perches
2010-11-13 0:42 ` Stephen Rothwell
2010-11-13 0:49 ` [PATCH 03/14 V2] " Joe Perches
2010-11-12 21:37 ` [PATCH 04/14] drivers/dma/ppc4xx: " Joe Perches
2010-11-12 21:37 ` [PATCH 05/14] drivers/infiniband: " Joe Perches
2011-01-06 23:59 ` Roland Dreier
2010-11-12 21:37 ` [PATCH 06/14] drivers/mfd: " Joe Perches
2010-11-26 11:01 ` Samuel Ortiz
2010-11-12 21:37 ` [PATCH 07/14] drivers/mtd/maps: " Joe Perches
2010-11-26 15:59 ` Artem Bityutskiy
2010-11-12 21:37 ` [PATCH 08/14] drivers/mtd/nand: " Joe Perches
2010-11-12 21:37 ` [PATCH 09/14] drivers/net/can/sja1000: " Joe Perches
2010-11-17 20:29 ` David Miller
2010-11-12 21:38 ` Joe Perches [this message]
2010-11-12 21:38 ` [PATCH 11/14] drivers/rapidio: " Joe Perches
2010-11-12 21:38 ` [PATCH 12/14] drivers/uwb: " Joe Perches
2010-11-12 21:38 ` [PATCH 13/14] drivers/video: " Joe Perches
2010-11-12 21:38 ` [PATCH 14/14] sound/ppc: " Joe Perches
2010-11-22 6:44 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4b2cfc9a82fa77a23a76db463e100b1a7016beee.1289597644.git.joe@perches.com \
--to=joe@perches.com \
--cc=deller@gmx.de \
--cc=jejb@parisc-linux.org \
--cc=kyle@mcmartin.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®