Blame SOURCES/kvm-vhost-user-Print-unexpected-slave-message-types.patch

902636
From d6abbdaeb2c35efe6793a599c98116e250b1f179 Mon Sep 17 00:00:00 2001
902636
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
902636
Date: Mon, 27 Jan 2020 19:01:43 +0100
902636
Subject: [PATCH 072/116] vhost-user: Print unexpected slave message types
902636
MIME-Version: 1.0
902636
Content-Type: text/plain; charset=UTF-8
902636
Content-Transfer-Encoding: 8bit
902636
902636
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
902636
Message-id: <20200127190227.40942-69-dgilbert@redhat.com>
902636
Patchwork-id: 93519
902636
O-Subject: [RHEL-AV-8.2 qemu-kvm PATCH 068/112] vhost-user: Print unexpected slave message types
902636
Bugzilla: 1694164
902636
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
902636
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
902636
RH-Acked-by: Sergio Lopez Pascual <slp@redhat.com>
902636
902636
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
902636
902636
When we receive an unexpected message type on the slave fd, print
902636
the type.
902636
902636
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
902636
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
902636
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
902636
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
902636
(cherry picked from commit 0fdc465d7d5aafeae127eba488f247ac6f58df4c)
902636
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
902636
---
902636
 hw/virtio/vhost-user.c | 2 +-
902636
 1 file changed, 1 insertion(+), 1 deletion(-)
902636
902636
diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c
902636
index 02a9b25..e4f46ec 100644
902636
--- a/hw/virtio/vhost-user.c
902636
+++ b/hw/virtio/vhost-user.c
902636
@@ -1055,7 +1055,7 @@ static void slave_read(void *opaque)
902636
                                                           fd[0]);
902636
         break;
902636
     default:
902636
-        error_report("Received unexpected msg type.");
902636
+        error_report("Received unexpected msg type: %d.", hdr.request);
902636
         ret = -EINVAL;
902636
     }
902636
 
902636
-- 
902636
1.8.3.1
902636