From: Stephen Hemminger Date: Fri, 13 Jun 2014 01:32:50 +0000 (-0700) Subject: virtio: fix build with debug enabled X-Git-Tag: spdx-start~10747 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=36c248ebc629889fff4e7d9d17e109412ddf9ecf;p=dpdk.git virtio: fix build with debug enabled Remove useless message that breaks if VIRTIO_DEBUG_DRIVER is defined. virtio_ethdev.c:224:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] Signed-off-by: Stephen Hemminger Acked-by: Changchun Ouyang --- diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c b/lib/librte_pmd_virtio/virtio_ethdev.c index 95eaba55fd..d0b419db1d 100644 --- a/lib/librte_pmd_virtio/virtio_ethdev.c +++ b/lib/librte_pmd_virtio/virtio_ethdev.c @@ -213,8 +213,6 @@ virtio_set_multiple_queues(struct rte_eth_dev *dev, uint16_t nb_queues) ctrl.hdr.cmd = VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET; memcpy(ctrl.data, &nb_queues, sizeof(uint16_t)); - PMD_INIT_LOG(DEBUG, "ctrl.data=%d\n", *(int *)ctrl.data); - dlen[0] = sizeof(uint16_t); ret = virtio_send_command(hw->cvq, &ctrl, dlen, 1);