提交 5421f318 编写于 作者: M Michael S. Tsirkin

vhost-user: print original request on error

When we get an unexpected response, print out
the original request.
Helps debug protocol errors tremendously.
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
上级 87656d50
......@@ -121,8 +121,8 @@ static int vhost_user_read(struct vhost_dev *dev, VhostUserMsg *msg)
r = qemu_chr_fe_read_all(chr, p, size);
if (r != size) {
error_report("Failed to read msg header. Read %d instead of %d.", r,
size);
error_report("Failed to read msg header. Read %d instead of %d."
" Original request %d.", r, size, msg->request);
goto fail;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册