From: Dr. David Alan Gilbert Date: Thu, 7 Feb 2019 18:22:40 +0000 (+0000) Subject: vhost-user: Print unexpected slave message types X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0fdc465d7d5aafeae127eba488f247ac6f58df4c;p=qemu.git vhost-user: Print unexpected slave message types When we receive an unexpected message type on the slave fd, print the type. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Daniel P. Berrangé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Dr. David Alan Gilbert --- diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c index d27a10fcc6..2e81f5514f 100644 --- a/hw/virtio/vhost-user.c +++ b/hw/virtio/vhost-user.c @@ -1061,7 +1061,7 @@ static void slave_read(void *opaque) fd[0]); break; default: - error_report("Received unexpected msg type."); + error_report("Received unexpected msg type: %d.", hdr.request); ret = -EINVAL; }