]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mfd: Use printf extension %pR for struct resource
authorJoe Perches <joe@perches.com>
Fri, 12 Nov 2010 21:37:56 +0000 (13:37 -0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 14 Jan 2011 11:37:38 +0000 (12:37 +0100)
Using %pR standardizes the struct resource output.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/sm501.c

index c24bed769fe75eb9925f1708964acaa644983baa..5de3a760ea1ef946075c1de485a645bb8121ae0d 100644 (file)
@@ -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);