diff --git a/lib/rte_vhost/socket.c b/lib/rte_vhost/socket.c index 2b2716a5d5..ec923518be 100644 --- a/lib/rte_vhost/socket.c +++ b/lib/rte_vhost/socket.c @@ -137,7 +137,10 @@ read_fd_message(int sockfd, char *buf, int buflen, int *fds, int fd_num) ret = recvmsg(sockfd, &msgh, 0); if (ret <= 0) { - RTE_LOG(ERR, VHOST_CONFIG, "recvmsg failed\n"); + if (ret) + RTE_LOG(ERR, VHOST_CONFIG, "recvmsg failed, %s\n", strerror(errno)); + else + RTE_LOG(INFO, VHOST_CONFIG, "peer closed\n"); return ret; }