diff mbox series

vhost-user: add missing space in error message

Message ID 20210806143926.315725-1-hi@alyssa.is (mailing list archive)
State New, archived
Headers show
Series vhost-user: add missing space in error message | expand

Commit Message

Alyssa Ross Aug. 6, 2021, 2:39 p.m. UTC
This would previously give error messages like

> Received unexpected msg type.Expected 0 received 1

Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
 hw/virtio/vhost-user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: bccabb3a5d60182645c7749e89f21a9ff307a9eb

Comments

Laurent Vivier Aug. 6, 2021, 3:28 p.m. UTC | #1
Le 06/08/2021 à 16:39, Alyssa Ross a écrit :
> This would previously give error messages like
> 
>> Received unexpected msg type.Expected 0 received 1
> 
> Signed-off-by: Alyssa Ross <hi@alyssa.is>
> ---
>  hw/virtio/vhost-user.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c
> index 29ea2b4fce..ad9fc40271 100644
> --- a/hw/virtio/vhost-user.c
> +++ b/hw/virtio/vhost-user.c
> @@ -429,7 +429,7 @@ static int process_message_reply(struct vhost_dev *dev,
>      }
>  
>      if (msg_reply.hdr.request != msg->hdr.request) {
> -        error_report("Received unexpected msg type."
> +        error_report("Received unexpected msg type. "
>                       "Expected %d received %d",
>                       msg->hdr.request, msg_reply.hdr.request);
>          return -1;
> 
> base-commit: bccabb3a5d60182645c7749e89f21a9ff307a9eb
> 

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
diff mbox series

Patch

diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c
index 29ea2b4fce..ad9fc40271 100644
--- a/hw/virtio/vhost-user.c
+++ b/hw/virtio/vhost-user.c
@@ -429,7 +429,7 @@  static int process_message_reply(struct vhost_dev *dev,
     }
 
     if (msg_reply.hdr.request != msg->hdr.request) {
-        error_report("Received unexpected msg type."
+        error_report("Received unexpected msg type. "
                      "Expected %d received %d",
                      msg->hdr.request, msg_reply.hdr.request);
         return -1;