From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ouyang Changchun Subject: [PATCH v2 2/3] vhost: fix the comments and log Date: Mon, 6 Jul 2015 10:26:52 +0800 Message-ID: <1436149613-30239-3-git-send-email-changchun.ouyang@intel.com> References: <1435807983-20383-1-git-send-email-changchun.ouyang@intel.com> <1436149613-30239-1-git-send-email-changchun.ouyang@intel.com> To: dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 0BDD1C3A4 for ; Mon, 6 Jul 2015 04:27:05 +0200 (CEST) In-Reply-To: <1436149613-30239-1-git-send-email-changchun.ouyang@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" It fixes the wrong log info when failing to unregister vhost driver. Signed-off-by: Changchun Ouyang --- examples/vhost/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) change in v2: - refine the comment - fix checkpatch issue 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); -- 1.8.4.2