Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754304AbaDWNAu (ORCPT ); Wed, 23 Apr 2014 09:00:50 -0400 Received: from cantor2.suse.de ([195.135.220.15]:33131 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751552AbaDWNAq (ORCPT ); Wed, 23 Apr 2014 09:00:46 -0400 From: Jan Moskyto Matejka To: Bing Zhao , "John W. Linville" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jan Moskyto Matejka Subject: [PATCH][linux-next] wireless: fixed bad dev_info integer type warning Date: Wed, 23 Apr 2014 15:00:39 +0200 Message-Id: <1398258039-20512-1-git-send-email-mq@suse.cz> X-Mailer: git-send-email 1.8.4.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pointer difference (ptrdiff_t) should be formatted by %tx, not %lx. Signed-off-by: Jan Moskyto Matejka --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/