drivers/uwb: Use printf extension %pR for struct resource
authorJoe Perches <joe@perches.com>
Fri, 12 Nov 2010 21:38:02 +0000 (13:38 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 21:54:18 +0000 (13:54 -0800)
Using %pR standardizes the struct resource output.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/uwb/umc-dev.c

index 43ea9982e68776a37c80f33ff19e2624fbec546d..ccd2184e05d245a9521757a170883ed3b5197013 100644 (file)
@@ -54,11 +54,8 @@ int umc_device_register(struct umc_dev *umc)
 
        err = request_resource(umc->resource.parent, &umc->resource);
        if (err < 0) {
-               dev_err(&umc->dev, "can't allocate resource range "
-                       "%016Lx to %016Lx: %d\n",
-                       (unsigned long long)umc->resource.start,
-                       (unsigned long long)umc->resource.end,
-                       err);
+               dev_err(&umc->dev, "can't allocate resource range %pR: %d\n",
+                       &umc->resource, err);
                goto error_request_resource;
        }