Skip to contentSkip to conversation

gpio: gpio-pl061: Use %pa to print 'resource_size_t'

PATCH In review Fabio Estevam 2 participants 2 messages Feb 26, 2014 – Mar 7, 2014 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: gpio-pl061: Use %pa to print 'resource_size_t'

From: Fabio Estevam <[email protected]>

The following build warning is generated when building multi_v7_defconfig with LPAE option selected:

drivers/gpio/gpio-pl061.c:358:2: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t' [-Wformat=]

Fix it by using %pa to print 'resource_size_t'.

---
 drivers/gpio/gpio-pl061.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpio/gpio-pl061.c +2 -2
index e528cb2..391766e 100644
@@ -355,8 +355,8 @@ static int pl061_probe(struct amba_device *adev, const struct amba_id *id)
 	}
 
 	amba_set_drvdata(adev, chip);
-	dev_info(&adev->dev, "PL061 GPIO chip @%08x registered\n",
-		adev->res.start);
+	dev_info(&adev->dev, "PL061 GPIO chip @%pa registered\n",
+		 &adev->res.start);
 
 	return 0;
 }
Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 10 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

The following build warning is generated when building multi_v7_defconfig with LPAE option selected:

drivers/gpio/gpio-pl061.c:358:2: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t' [-Wformat=]

Fix it by using %pa to print 'resource_size_t'.

I love this guy.

Quoted 1 line

Patch applied.

Yours,
Linus Walleij