linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mfd: syscon: fix warnings when printing resource_size_t
@ 2013-04-09 17:50 Alexander Shiyan
  2013-04-09 20:52 ` Samuel Ortiz
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2013-04-09 17:50 UTC (permalink / raw)
  To: linux-kernel
  Cc: Dong Aisheng, Samuel Ortiz, Mark Brown, Arnd Bergmann, Alexander Shiyan

Gets rid of these warnings when compile module for 64 bit targets:
  CC      drivers/mfd/syscon.o
  drivers/mfd/syscon.c: In function 'syscon_probe':
  drivers/mfd/syscon.c:155:2: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t' [-Wformat]
  drivers/mfd/syscon.c:155:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat]

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/mfd/syscon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 7905d36..962a6e1 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -152,7 +152,7 @@ static int syscon_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, syscon);
 
-	dev_info(dev, "regmap 0x%x-0x%x registered\n", res->start, res->end);
+	dev_info(dev, "regmap %pR registered\n", res);
 
 	return 0;
 }
-- 
1.8.1.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mfd: syscon: fix warnings when printing resource_size_t
  2013-04-09 17:50 [PATCH] mfd: syscon: fix warnings when printing resource_size_t Alexander Shiyan
@ 2013-04-09 20:52 ` Samuel Ortiz
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Ortiz @ 2013-04-09 20:52 UTC (permalink / raw)
  To: Alexander Shiyan; +Cc: linux-kernel, Dong Aisheng, Mark Brown, Arnd Bergmann

Hi Alexander,

On Tue, Apr 09, 2013 at 09:50:02PM +0400, Alexander Shiyan wrote:
> Gets rid of these warnings when compile module for 64 bit targets:
>   CC      drivers/mfd/syscon.o
>   drivers/mfd/syscon.c: In function 'syscon_probe':
>   drivers/mfd/syscon.c:155:2: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t' [-Wformat]
>   drivers/mfd/syscon.c:155:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat]
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  drivers/mfd/syscon.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-09 20:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-09 17:50 [PATCH] mfd: syscon: fix warnings when printing resource_size_t Alexander Shiyan
2013-04-09 20:52 ` Samuel Ortiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).