]> git.proxmox.com Git - mirror_qemu.git/commitdiff
vhost-user: Print unexpected slave message types
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 7 Feb 2019 18:22:40 +0000 (18:22 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:37 +0000 (16:41 +0000)
When we receive an unexpected message type on the slave fd, print
the type.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
hw/virtio/vhost-user.c

index d27a10fcc69954a718984c90b2ce6924d9ec0164..2e81f5514f62ff17e34da11d5a410358cdcbbaa2 100644 (file)
@@ -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;
     }