projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f71e1af
)
mfd: Use printf extension %pR for struct resource
author
Joe Perches
<
[email protected]
>
Fri, 12 Nov 2010 21:37:56 +0000
(13:37 -0800)
committer
Samuel Ortiz
<
[email protected]
>
Fri, 14 Jan 2011 11:37:38 +0000
(12:37 +0100)
Using %pR standardizes the struct resource output.
Signed-off-by: Joe Perches <
[email protected]
>
Signed-off-by: Samuel Ortiz <
[email protected]
>
drivers/mfd/sm501.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/sm501.c
b/drivers/mfd/sm501.c
index c24bed769fe75eb9925f1708964acaa644983baa..5de3a760ea1ef946075c1de485a645bb8121ae0d 100644
(file)
--- a/
drivers/mfd/sm501.c
+++ b/
drivers/mfd/sm501.c
@@
-745,11
+745,8
@@
static int sm501_register_device(struct sm501_devdata *sm,
int ret;
for (ptr = 0; ptr < pdev->num_resources; ptr++) {
- printk(KERN_DEBUG "%s[%d] flags %08lx: %08llx..%08llx\n",
- pdev->name, ptr,
- pdev->resource[ptr].flags,
- (unsigned long long)pdev->resource[ptr].start,
- (unsigned long long)pdev->resource[ptr].end);
+ printk(KERN_DEBUG "%s[%d] %pR\n",
+ pdev->name, ptr, &pdev->resource[ptr]);
}
ret = platform_device_register(pdev);