Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: Use printf extension %pR for struct resource

Using %pR standardizes the struct resource output.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Joe Perches and committed by
Samuel Ortiz
3f3d4310 f71e1afd

+2 -5
+2 -5
drivers/mfd/sm501.c
··· 745 745 int ret; 746 746 747 747 for (ptr = 0; ptr < pdev->num_resources; ptr++) { 748 - printk(KERN_DEBUG "%s[%d] flags %08lx: %08llx..%08llx\n", 749 - pdev->name, ptr, 750 - pdev->resource[ptr].flags, 751 - (unsigned long long)pdev->resource[ptr].start, 752 - (unsigned long long)pdev->resource[ptr].end); 748 + printk(KERN_DEBUG "%s[%d] %pR\n", 749 + pdev->name, ptr, &pdev->resource[ptr]); 753 750 } 754 751 755 752 ret = platform_device_register(pdev);