summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Agrawal <hemant.agrawal@nxp.com>2019-07-22 15:33:22 +0530
committerThomas Monjalon <thomas@monjalon.net>2019-07-22 16:12:20 +0200
commit829d5116f9d1a347ab768efded09feb07a032313 (patch)
tree8d0c0680f2a6e74c53fb0bdfec7cf89e3a23dce7
parent85dff43f586cfeec8e346bb901f70e71f5807287 (diff)
downloaddpdk-829d5116f9d1a347ab768efded09feb07a032313.zip
dpdk-829d5116f9d1a347ab768efded09feb07a032313.tar.gz
dpdk-829d5116f9d1a347ab768efded09feb07a032313.tar.xz
bus/fslmc: fix ppc build
fslmc_vfio.c:387:36: note: format string is defined here DPAA2_BUS_DEBUG("VFIO dmamap 0x%llx:0x%llx, size 0x%llx\n", format ‘%llx’ expects argument of type ‘long long unsigned int’ argument 6 has type ‘__u64 {aka long unsigned int}’ Fixes: 2b5fa25708cf ("mempool/dpaa2: map external memory with VFIO") Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
-rw-r--r--drivers/bus/fslmc/fslmc_vfio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c
index 247b2a4..9658fd8 100644
--- a/drivers/bus/fslmc/fslmc_vfio.c
+++ b/drivers/bus/fslmc/fslmc_vfio.c
@@ -384,8 +384,9 @@ rte_fslmc_vfio_mem_dmamap(uint64_t vaddr, uint64_t iova, uint64_t size)
dma_map.vaddr = vaddr;
dma_map.iova = iova;
- DPAA2_BUS_DEBUG("VFIO dmamap 0x%llx:0x%llx, size 0x%llx\n",
- dma_map.vaddr, dma_map.iova, dma_map.size);
+ DPAA2_BUS_DEBUG("VFIOdmamap 0x%"PRIx64":0x%"PRIx64",size 0x%"PRIx64"\n",
+ (uint64_t)dma_map.vaddr, (uint64_t)dma_map.iova,
+ (uint64_t)dma_map.size);
ret = ioctl(group->container->fd, VFIO_IOMMU_MAP_DMA,
&dma_map);
if (ret) {