Blame 0074-vhost-user-Print-unexpected-slave-message-types.patch

1d442b
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
1d442b
Date: Mon, 27 Jan 2020 19:01:43 +0000
1d442b
Subject: [PATCH] vhost-user: Print unexpected slave message types
1d442b
MIME-Version: 1.0
1d442b
Content-Type: text/plain; charset=UTF-8
1d442b
Content-Transfer-Encoding: 8bit
1d442b
1d442b
When we receive an unexpected message type on the slave fd, print
1d442b
the type.
1d442b
1d442b
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
1d442b
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
1d442b
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
1d442b
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
1d442b
(cherry picked from commit 0fdc465d7d5aafeae127eba488f247ac6f58df4c)
1d442b
---
1d442b
 hw/virtio/vhost-user.c | 2 +-
1d442b
 1 file changed, 1 insertion(+), 1 deletion(-)
1d442b
1d442b
diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c
1d442b
index 02a9b25199..e4f46ecf88 100644
1d442b
--- a/hw/virtio/vhost-user.c
1d442b
+++ b/hw/virtio/vhost-user.c
1d442b
@@ -1055,7 +1055,7 @@ static void slave_read(void *opaque)
1d442b
                                                           fd[0]);
1d442b
         break;
1d442b
     default:
1d442b
-        error_report("Received unexpected msg type.");
1d442b
+        error_report("Received unexpected msg type: %d.", hdr.request);
1d442b
         ret = -EINVAL;
1d442b
     }
1d442b