Skip to content

Commit

Permalink
mfd: Use printf extension %pR for struct resource
Browse files Browse the repository at this point in the history
Using %pR standardizes the struct resource output.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Joe Perches authored and Samuel Ortiz committed Jan 14, 2011
1 parent f71e1af commit 3f3d431
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/mfd/sm501.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f3d431

Please sign in to comment.