[dpdk-stable] [PATCH v17.08] vhost: fix compilation issue when vhost debug enabled
Luca Boccassi
bluca at debian.org
Mon Apr 23 18:52:40 CEST 2018
On Mon, 2018-04-23 at 18:48 +0200, Maxime Coquelin wrote:
> This patch fixes below compilation issue when
> RTE_LIBRTE_VHOST_DEBUG is enabled:
>
> In file included from
> /home/max/projects/src/mainline/dpdk/lib/librte_vhost/virtio_net.c:50
> :0:
> ./lib/librte_vhost/virtio_net.c: In function ‘copy_mbuf_to_desc’:
> ./lib/librte_vhost/vhost.h:205:42: warning: format ‘%d’ expects
> argument of type ‘int’, but argument 5 has type ‘uint64_t {aka long
> unsigned int}’ [-Wformat=]
> snprintf(packet, VHOST_MAX_PRINT_BUFF, "(%d) Header size %d: ",
> (device->vid), (size)); \
> ^
> /home/max/projects/src/mainline/dpdk/lib/librte_vhost/virtio_net.c:30
> 1:4: note: in expansion of macro ‘PRINT_PACKET’
> PRINT_PACKET(dev, (uintptr_t)dst, len, 0);
> ^~~~~~~~~~~~
>
> Fixes: 4cffc971276e ("vhost: add support for non-contiguous indirect
> descs tables")
> Fixes: 23c7270c36f3 ("vhost: handle virtually non-contiguous buffers
> in Rx")
> Fixes: c47e72beb209 ("vhost: handle virtually non-contiguous buffers
> in Rx-mrg")
>
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks, applied and pushed to dpdk-stable/16.11 (removed the local path
from the log as requested)
--
Kind regards,
Luca Boccassi
More information about the stable
mailing list