projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10477ac
)
vhost-user: Print unexpected slave message types
author
Dr. David Alan Gilbert
<dgilbert@redhat.com>
Thu, 7 Feb 2019 18:22:40 +0000
(18:22 +0000)
committer
Dr. 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
patch
|
blob
|
history
diff --git
a/hw/virtio/vhost-user.c
b/hw/virtio/vhost-user.c
index d27a10fcc69954a718984c90b2ce6924d9ec0164..2e81f5514f62ff17e34da11d5a410358cdcbbaa2 100644
(file)
--- 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;
}