summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOuyang Changchun <changchun.ouyang@intel.com>2015-07-06 10:26:52 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-17 15:08:44 +0200
commit29c0f3c8979e5ce6381aa1d0022418c654264ba0 (patch)
tree00f298aee845610feb13aa2dd129e0b85e314f76
parent1cbf787ef8701a59a03825f64f19425cd45ba33e (diff)
downloaddpdk-29c0f3c8979e5ce6381aa1d0022418c654264ba0.zip
dpdk-29c0f3c8979e5ce6381aa1d0022418c654264ba0.tar.gz
dpdk-29c0f3c8979e5ce6381aa1d0022418c654264ba0.tar.xz
examples/vhost: fix comment and log
It fixes the wrong log info when failing to unregister vhost driver. Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Huawei Xie <huawei.xie@intel.com>
-rw-r--r--examples/vhost/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/vhost/main.c b/examples/vhost/main.c
index 7863dcf..56a5c70 100644
--- a/examples/vhost/main.c
+++ b/examples/vhost/main.c
@@ -3051,10 +3051,10 @@ main(int argc, char *argv[])
if (mergeable == 0)
rte_vhost_feature_disable(1ULL << VIRTIO_NET_F_MRG_RXBUF);
- /* Register CUSE device to handle IOCTLs. */
+ /* Register vhost(cuse or user) driver to handle vhost messages. */
ret = rte_vhost_driver_register((char *)&dev_basename);
if (ret != 0)
- rte_exit(EXIT_FAILURE,"CUSE device setup failure.\n");
+ rte_exit(EXIT_FAILURE, "vhost driver register failure.\n");
rte_vhost_driver_callback_register(&virtio_net_device_ops);