vhost: print reason of NUMA node query failure
authorIlya Maximets <i.maximets@samsung.com>
Thu, 6 Jul 2017 13:30:43 +0000 (16:30 +0300)
committerYuanhan Liu <yliu@fridaylinux.org>
Fri, 7 Jul 2017 00:17:56 +0000 (02:17 +0200)
commit185a88359742a7002b282b3b91e63cf723e4fd42
treeb89dbb906fb648aa00ebbf4a87597094bd99eff9
parentc3b2fdfe5606d71fed62e26592723a4e7788718d
vhost: print reason of NUMA node query failure

syscall always returns '-1' on failure and there is no point
in printing that value. 'errno' is much more informative.

Fixes: 586e39001317 ("vhost: export numa node")

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/vhost.c