From 36c248ebc629889fff4e7d9d17e109412ddf9ecf Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 12 Jun 2014 18:32:50 -0700 Subject: [PATCH] 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 --- lib/librte_pmd_virtio/virtio_ethdev.c | 2 -- 1 file changed, 2 deletions(-) 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); -- 2.20.1