linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][linux-next] wireless: fixed bad dev_info integer type warning
@ 2014-04-23 13:00 Jan Moskyto Matejka
  2014-04-23 20:55 ` Bing Zhao
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Moskyto Matejka @ 2014-04-23 13:00 UTC (permalink / raw)
  To: Bing Zhao, John W. Linville, linux-wireless, netdev, linux-kernel
  Cc: Jan Moskyto Matejka

The pointer difference (ptrdiff_t) should be formatted by %tx, not %lx.

Signed-off-by: Jan Moskyto Matejka <mq@suse.cz>
---
 drivers/net/wireless/mwifiex/pcie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c
index 9c1f427..e04141a 100644
--- a/drivers/net/wireless/mwifiex/pcie.c
+++ b/drivers/net/wireless/mwifiex/pcie.c
@@ -2321,7 +2321,7 @@ static void mwifiex_pcie_fw_dump_work(struct work_struct *work)
 			if (stat != RDWR_STATUS_DONE)
 				continue;
 
-			dev_info(adapter->dev, "%s done: size=0x%lx\n",
+			dev_info(adapter->dev, "%s done: size=0x%tx\n",
 				 entry->mem_name, dbg_ptr - entry->mem_ptr);
 			memset(filename, 0, sizeof(filename));
 			memcpy(filename, name_prefix, strlen(name_prefix));
-- 
1.8.4.5


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

* RE: [PATCH][linux-next] wireless: fixed bad dev_info integer type warning
  2014-04-23 13:00 [PATCH][linux-next] wireless: fixed bad dev_info integer type warning Jan Moskyto Matejka
@ 2014-04-23 20:55 ` Bing Zhao
  0 siblings, 0 replies; 2+ messages in thread
From: Bing Zhao @ 2014-04-23 20:55 UTC (permalink / raw)
  To: Jan Moskyto Matejka, John W. Linville, linux-wireless, netdev,
	linux-kernel

Hi Jan,

Thanks for the patch.

> The pointer difference (ptrdiff_t) should be formatted by %tx, not %lx.
> 
> Signed-off-by: Jan Moskyto Matejka <mq@suse.cz>

Acked-by: Bing Zhao <bzhao@marvell.com>

Regards,
Bing

> ---
>  drivers/net/wireless/mwifiex/pcie.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c
> index 9c1f427..e04141a 100644
> --- a/drivers/net/wireless/mwifiex/pcie.c
> +++ b/drivers/net/wireless/mwifiex/pcie.c
> @@ -2321,7 +2321,7 @@ static void mwifiex_pcie_fw_dump_work(struct work_struct *work)
>  			if (stat != RDWR_STATUS_DONE)
>  				continue;
> 
> -			dev_info(adapter->dev, "%s done: size=0x%lx\n",
> +			dev_info(adapter->dev, "%s done: size=0x%tx\n",
>  				 entry->mem_name, dbg_ptr - entry->mem_ptr);
>  			memset(filename, 0, sizeof(filename));
>  			memcpy(filename, name_prefix, strlen(name_prefix));
> --
> 1.8.4.5


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

end of thread, other threads:[~2014-04-23 20:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-23 13:00 [PATCH][linux-next] wireless: fixed bad dev_info integer type warning Jan Moskyto Matejka
2014-04-23 20:55 ` Bing Zhao

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).