diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-07-10 19:23:25 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-08-01 13:33:10 -0400 |
commit | 6d9fe5884e8dbf31a550316d924bea8c3ed155cf (patch) | |
tree | 54d2e15b518f8c94289b7467465e3e92c75273b7 /drivers/i2c | |
parent | b19c1959b09b0ab7f4af6ab99a09e00f9f5672ff (diff) |
i2c: i2c-st: Use %pa to print 'resource_size_t' type
When building multi_v7_defconfig with CONFIG_ARM_LPAE=y the following warning
is seen:
drivers/i2c/busses/i2c-st.c:818:2: warning: format '%x' expects argument of type
'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat=]
Use %pa to print 'resource_size_t' type to fix the warning.
Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-st.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-st.c b/drivers/i2c/busses/i2c-st.c index 95b947670386..fc767ddba3fb 100644 --- a/drivers/i2c/busses/i2c-st.c +++ b/drivers/i2c/busses/i2c-st.c | |||
@@ -815,7 +815,7 @@ static int st_i2c_probe(struct platform_device *pdev) | |||
815 | 815 | ||
816 | adap = &i2c_dev->adap; | 816 | adap = &i2c_dev->adap; |
817 | i2c_set_adapdata(adap, i2c_dev); | 817 | i2c_set_adapdata(adap, i2c_dev); |
818 | snprintf(adap->name, sizeof(adap->name), "ST I2C(0x%x)", res->start); | 818 | snprintf(adap->name, sizeof(adap->name), "ST I2C(0x%pa)", &res->start); |
819 | adap->owner = THIS_MODULE; | 819 | adap->owner = THIS_MODULE; |
820 | adap->timeout = 2 * HZ; | 820 | adap->timeout = 2 * HZ; |
821 | adap->retries = 0; | 821 | adap->retries = 0; |