> -----Original Message----- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Thursday, June 19, 2014 7:22 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] EAL: fix usage of printf-like functions > > Mark the rte_log, cmdline_printf and rte_snprintf functions as > being printf-style functions. This causes compilation errors > due to mis-matched parameter types, so the parameter types are > fixed where appropriate. > > Changes in V2: > * Additional fixes for ivshmem-target compilation > > Signed-off-by: Bruce Richardson <bruce.richardson at intel.com> > ---
This patch compiles correctly before the 1.7 rc1. After it, i40e library introduces a compilation error that can be fixed by making the following change: --- a/lib/librte_pmd_i40e/i40e_ethdev.c +++ b/lib/librte_pmd_i40e/i40e_ethdev.c @@ -1536,7 +1536,7 @@ i40e_allocate_dma_mem_d(__attribute__((unused)) struct i40e_hw *hw, return I40E_ERR_PARAM; id++; - rte_snprintf(z_name, sizeof(z_name), "i40e_dma_%lu", id); + rte_snprintf(z_name, sizeof(z_name), "i40e_dma_%"PRIu64, id); mz = rte_memzone_reserve_aligned(z_name, size, 0, 0, alignment); if (!mz) return I40E_ERR_NO_MEMORY; Thanks, Pablo