From: Maxime Coquelin Date: Wed, 26 Jan 2022 09:55:03 +0000 (+0100) Subject: vhost: improve vDPA registration failure log X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=843d8e3fde99314ff0061d1915d353f06de585bf;p=dpdk.git vhost: improve vDPA registration failure log This patch adds name of the device failing vDPA registration. Signed-off-by: Maxime Coquelin Reviewed-by: Chenbo Xia Reviewed-by: David Marchand --- diff --git a/lib/vhost/vdpa.c b/lib/vhost/vdpa.c index 09ad5d866e..6df2230a67 100644 --- a/lib/vhost/vdpa.c +++ b/lib/vhost/vdpa.c @@ -82,8 +82,8 @@ rte_vdpa_register_device(struct rte_device *rte_dev, !ops->get_protocol_features || !ops->dev_conf || !ops->dev_close || !ops->set_vring_state || !ops->set_features) { - VHOST_LOG_CONFIG(ERR, - "Some mandatory vDPA ops aren't implemented\n"); + VHOST_LOG_CONFIG(ERR, "(%s) Some mandatory vDPA ops aren't implemented\n", + rte_dev->name); return NULL; }