[PATCH V2 -next] cs5535: fix printk format warnings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joe Perches
Date: Monday, December 13, 2010 - 1:28 pm

Use vsprintf extension %pR to format resource.

Original-patch-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Joe Perches <joe@perches.com>

---

 drivers/gpio/cs5535-gpio.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/cs5535-gpio.c b/drivers/gpio/cs5535-gpio.c
index b566fd5e..d7da7a1 100644
--- a/drivers/gpio/cs5535-gpio.c
+++ b/drivers/gpio/cs5535-gpio.c
@@ -266,8 +266,7 @@ static int __devinit cs5535_gpio_probe(struct platform_device *pdev)
 	cs5535_gpio_chip.pdev = pdev;
 	spin_lock_init(&cs5535_gpio_chip.lock);
 
-	dev_info(&pdev->dev, "region 0x%x - 0x%x reserved\n",
-			res->start, res->end);
+	dev_info(&pdev->dev, "reserved resource region %pR\n", res);
 
 	/* mask out reserved pins */
 	mask &= 0x1F7FFFFF;


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for December 13, Stephen Rothwell, (Sun Dec 12, 10:36 pm)
[PATCH -next] thermal: depends on NET, Randy Dunlap, (Mon Dec 13, 12:20 pm)
[PATCH -next] cs5535: fix printk format warnings, Randy Dunlap, (Mon Dec 13, 12:44 pm)
[PATCH V2 -next] cs5535: fix printk format warnings, Joe Perches, (Mon Dec 13, 1:28 pm)
Re: [PATCH V2 -next] cs5535: fix printk format warnings, Randy Dunlap, (Mon Dec 13, 1:42 pm)
[PATCH V3 -next] cs5535: fix printk format warnings, Joe Perches, (Mon Dec 13, 1:57 pm)
Re: [PATCH -next] thermal: depends on NET, Randy Dunlap, (Mon Dec 20, 9:47 am)
Re: [PATCH -next] thermal: depends on NET, Randy Dunlap, (Tue Jan 4, 10:10 am)