[dpdk-stable] [PATCH v17.11 LTS] vhost: fix compilation issue when vhost debug enabled

Luca Boccassi bluca at debian.org
Mon Apr 23 19:10:06 CEST 2018


On Mon, 2018-04-23 at 18:57 +0200, Maxime Coquelin wrote:
> This patch fixes below compilation issue when
> RTE_LIBRTE_VHOST_DEBUG is enabled:
> 
> In file included from ./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)); \
>                                           ^
> ./lib/librte_vhost/virtio_net.c:301:4: note: in expansion of macro
> ‘PRINT_PACKET’
>     PRINT_PACKET(dev, (uintptr_t)dst, len, 0);
>     ^~~~~~~~~~~~
> 
> Fixes: 266a4dae840e ("vhost: handle virtually non-contiguous buffers
> in Tx")
> Fixes: a2bc90bb969a ("vhost: handle virtually non-contiguous buffers
> in Rx")
> Fixes: 1e92b3cec1d7 ("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/17.11

-- 
Kind regards,
Luca Boccassi


More information about the stable mailing list