examples/vhost: fix build with debug enabled
authorOuyang Changchun <changchun.ouyang@intel.com>
Mon, 4 May 2015 07:15:19 +0000 (15:15 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 11 May 2015 17:46:24 +0000 (19:46 +0200)
Minor fix for the referring of a pointer when debug and dump is enabled.

Fixes: 72ec8d77ac68 ("examples/vhost: rework duplicated code")

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
examples/vhost/main.c

index a01a057..509e9d8 100644 (file)
@@ -1105,7 +1105,7 @@ find_local_dest(struct virtio_net *dev, struct rte_mbuf *m,
                        "(%"PRIu64") TX: pkt to local VM device id:"
                        "(%"PRIu64") vlan tag: %d.\n",
                        dev->device_fh, dev_ll->vdev->dev->device_fh,
-                       vlan_tag);
+                       (int)*vlan_tag);
 
                        break;
                }