linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Moskyto Matejka <mq@suse.cz>
To: Bing Zhao <bzhao@marvell.com>,
	"John W. Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: Jan Moskyto Matejka <mq@suse.cz>
Subject: [PATCH][linux-next] wireless: fixed bad dev_info integer type warning
Date: Wed, 23 Apr 2014 15:00:39 +0200	[thread overview]
Message-ID: <1398258039-20512-1-git-send-email-mq@suse.cz> (raw)

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


             reply	other threads:[~2014-04-23 13:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 13:00 Jan Moskyto Matejka [this message]
2014-04-23 20:55 ` [PATCH][linux-next] wireless: fixed bad dev_info integer type warning Bing Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1398258039-20512-1-git-send-email-mq@suse.cz \
    --to=mq@suse.cz \
    --cc=bzhao@marvell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).