From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id B612FA251 for ; Thu, 19 May 2016 19:38:17 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id a17so137062024wme.0 for ; Thu, 19 May 2016 10:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=AyYsroniUPxWVFuzTDX6w6b6PTQsYNZxV92lfg8iu+E=; b=m1TaxDUXWwsKqA9I8Ubl93zxFTF+cqchMTdzOQpsl20bQx7ZRdCRl5xfdnJRmvdxmE UdQnzOzLDrF40fcEXPANYoYuRS1f8WnShJDFMLtBjPYJPXyliQMJInncpjHmG62RPCVH RJDwuhQB3FHrFfmRsfoAEgz85WdG2ZTBa2J2MIXAQbNNsOs3IR4iupNanlbmW999jYBy C6xUN9wVt6yR5L8288/Zn1eSF7TbdthRYlMBowUnU1F+admO6ZMQWndd1h06Am9HnzgY t67AAZ9LZoZha5asAwkcdns1rRdYWj8C1xVModHrqRRlSv5ipsFzf7plaAybrEU0qWvx KoDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AyYsroniUPxWVFuzTDX6w6b6PTQsYNZxV92lfg8iu+E=; b=l1GXXpDjTzZNIhcM3WoSYG/0kk1+402k8hUU7cLBoISFRPFZPWWkorWbAY4xNX+AN0 Km7QVlsXrMV5PKm7BqCdYu6WZuJ0Reqr9diuM6NFxhM/a7uPW2FNArznMBvZpKInLOrM vofrM8nxmKTKMvxvq+S3uvZGutodDf3mrKXbC2N3rUWw4OsehbQ+5mFVP5r/QwhxvzTu gE6y6ycM9Vfq2Tk4W4l38RCRjJC4xsSy6A1rGhCWMurwxoW+o2qvVFCmy2A9ej/95p11 5ubYp64x4TSa5s2qL+/cTl9FKv42hneyqqNH+BmQyuw4vY1PnFdfFGS09X6EG3eznh+4 +jMQ== X-Gm-Message-State: AOPr4FVNSrvQGEOsVeTs3eisFBbvVRgfArZ/2/eyqDMrZ2gztg3fqnqj2vF5NJf2PZEcH/xQ X-Received: by 10.194.157.161 with SMTP id wn1mr9725749wjb.131.1463679497186; Thu, 19 May 2016 10:38:17 -0700 (PDT) Received: from XPS13.localdomain (111.202.154.77.rev.sfr.net. [77.154.202.111]) by smtp.gmail.com with ESMTPSA id u6sm284560wmd.21.2016.05.19.10.38.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 May 2016 10:38:16 -0700 (PDT) From: Thomas Monjalon To: Harish Patil , Rasesh Mody , Sony Chacko Cc: dev@dpdk.org Date: Thu, 19 May 2016 19:38:02 +0200 Message-Id: <1463679482-2312-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-dev] [PATCH] qede: fix 32-bit build with debug enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2016 17:38:17 -0000 Some 64-bit variables are printed for debug. %PRIx64 qualifier must be used because %lx is not long enough on 32-bit systems Signed-off-by: Thomas Monjalon --- drivers/net/qede/base/bcm_osal.c | 4 ++-- drivers/net/qede/base/ecore_cxt.c | 6 +++--- drivers/net/qede/base/ecore_mcp.c | 4 ++-- drivers/net/qede/base/ecore_sriov.c | 8 ++++---- drivers/net/qede/base/ecore_vf.c | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/net/qede/base/bcm_osal.c b/drivers/net/qede/base/bcm_osal.c index 9540c4b..ae5a8bc 100644 --- a/drivers/net/qede/base/bcm_osal.c +++ b/drivers/net/qede/base/bcm_osal.c @@ -115,7 +115,7 @@ void *osal_dma_alloc_coherent(struct ecore_dev *p_dev, } *phys = mz->phys_addr; DP_VERBOSE(p_dev, ECORE_MSG_PROBE, - "size=%zu phys=0x%lx virt=%p on socket=%u\n", + "size=%zu phys=0x%" PRIx64 " virt=%p on socket=%u\n", mz->len, mz->phys_addr, mz->addr, socket_id); return mz->addr; } @@ -144,7 +144,7 @@ void *osal_dma_alloc_coherent_aligned(struct ecore_dev *p_dev, } *phys = mz->phys_addr; DP_VERBOSE(p_dev, ECORE_MSG_PROBE, - "aligned memory size=%zu phys=0x%lx virt=%p core=%d\n", + "aligned memory size=%zu phys=0x%" PRIx64 " virt=%p core=%d\n", mz->len, mz->phys_addr, mz->addr, core_id); return mz->addr; } diff --git a/drivers/net/qede/base/ecore_cxt.c b/drivers/net/qede/base/ecore_cxt.c index 8436621..1201c1a 100644 --- a/drivers/net/qede/base/ecore_cxt.c +++ b/drivers/net/qede/base/ecore_cxt.c @@ -876,8 +876,8 @@ ecore_ilt_blk_alloc(struct ecore_hwfn *p_hwfn, ilt_shadow[line].size = size; DP_VERBOSE(p_hwfn, ECORE_MSG_ILT, - "ILT shadow: Line [%d] Physical 0x%lx " - "Virtual %p Size %d\n", + "ILT shadow: Line [%d] Physical 0x%" PRIx64 + " Virtual %p Size %d\n", line, (u64)p_phys, p_virt, size); sz_left -= size; @@ -1474,7 +1474,7 @@ static void ecore_ilt_init_pf(struct ecore_hwfn *p_hwfn) DP_VERBOSE(p_hwfn, ECORE_MSG_ILT, "Setting RT[0x%08x] from" " ILT[0x%08x] [Client is %d] to" - " Physical addr: 0x%lx\n", + " Physical addr: 0x%" PRIx64 "\n", rt_offst, line, i, (u64)(p_shdw[line].p_phys >> 12)); } diff --git a/drivers/net/qede/base/ecore_mcp.c b/drivers/net/qede/base/ecore_mcp.c index bdc6a5e..9dd2eed 100644 --- a/drivers/net/qede/base/ecore_mcp.c +++ b/drivers/net/qede/base/ecore_mcp.c @@ -1197,8 +1197,8 @@ enum _ecore_status_t ecore_mcp_fill_shmem_func_info(struct ecore_hwfn *p_hwfn, DP_VERBOSE(p_hwfn, (ECORE_MSG_SP | ECORE_MSG_IFUP), "Read configuration from shmem: pause_on_host %02x" " protocol %02x BW [%02x - %02x]" - " MAC %02x:%02x:%02x:%02x:%02x:%02x wwn port %lx" - " node %lx ovlan %04x\n", + " MAC %02x:%02x:%02x:%02x:%02x:%02x wwn port %" PRIx64 + " node %" PRIx64 " ovlan %04x\n", info->pause_on_host, info->protocol, info->bandwidth_min, info->bandwidth_max, info->mac[0], info->mac[1], info->mac[2], diff --git a/drivers/net/qede/base/ecore_sriov.c b/drivers/net/qede/base/ecore_sriov.c index 7cd48ea..1b3119d 100644 --- a/drivers/net/qede/base/ecore_sriov.c +++ b/drivers/net/qede/base/ecore_sriov.c @@ -297,9 +297,9 @@ static enum _ecore_status_t ecore_iov_allocate_vfdb(struct ecore_hwfn *p_hwfn) return ECORE_NOMEM; DP_VERBOSE(p_hwfn, ECORE_MSG_IOV, - "PF's Requests mailbox [%p virt 0x%lx phys], Response" - " mailbox [%p virt 0x%lx phys] Bulletins" - " [%p virt 0x%lx phys]\n", + "PF's Requests mailbox [%p virt 0x%" PRIx64 " phys], " + "Response mailbox [%p virt 0x%" PRIx64 " phys] Bulletins" + " [%p virt 0x%" PRIx64 " phys]\n", p_iov_info->mbx_msg_virt_addr, (u64)p_iov_info->mbx_msg_phys_addr, p_iov_info->mbx_reply_virt_addr, @@ -1250,7 +1250,7 @@ static void ecore_iov_vf_mbx_acquire(struct ecore_hwfn *p_hwfn, DP_VERBOSE(p_hwfn, ECORE_MSG_IOV, "VF[%d] ACQUIRE_RESPONSE: pfdev_info- chip_num=0x%x," - " db_size=%d, idx_per_sb=%d, pf_cap=0x%lx\n" + " db_size=%d, idx_per_sb=%d, pf_cap=0x%" PRIx64 "\n" "resources- n_rxq-%d, n_txq-%d, n_sbs-%d, n_macs-%d," " n_vlans-%d, n_mcs-%d\n", vf->abs_vf_id, resp->pfdev_info.chip_num, diff --git a/drivers/net/qede/base/ecore_vf.c b/drivers/net/qede/base/ecore_vf.c index 4073aaf..d32fb35 100644 --- a/drivers/net/qede/base/ecore_vf.c +++ b/drivers/net/qede/base/ecore_vf.c @@ -325,8 +325,8 @@ enum _ecore_status_t ecore_vf_hw_prepare(struct ecore_dev *p_dev) } DP_VERBOSE(p_hwfn, ECORE_MSG_IOV, - "VF's Request mailbox [%p virt 0x%lx phys], Response" - " mailbox [%p virt 0x%lx phys]\n", + "VF's Request mailbox [%p virt 0x%" PRIx64 " phys], " + "Response mailbox [%p virt 0x%" PRIx64 " phys]\n", p_sriov->vf2pf_request, (u64)p_sriov->vf2pf_request_phys, p_sriov->pf2vf_reply, (u64)p_sriov->pf2vf_reply_phys); @@ -339,7 +339,7 @@ enum _ecore_status_t ecore_vf_hw_prepare(struct ecore_dev *p_dev) p_sriov->bulletin. size); DP_VERBOSE(p_hwfn, ECORE_MSG_IOV, - "VF's bulletin Board [%p virt 0x%lx phys 0x%08x bytes]\n", + "VF's bulletin Board [%p virt 0x%" PRIx64 " phys 0x%08x bytes]\n", p_sriov->bulletin.p_virt, (u64)p_sriov->bulletin.phys, p_sriov->bulletin.size); -- 2.7.0