]> Git Repo - qemu.git/commitdiff
nbd-client: Fix error message typos
authorEric Blake <[email protected]>
Wed, 8 Nov 2017 21:56:57 +0000 (15:56 -0600)
committerEric Blake <[email protected]>
Thu, 9 Nov 2017 16:09:38 +0000 (10:09 -0600)
Provide missing spaces that are required when using string
concatenation to break error messages across source lines.
Introduced in commit f140e300.

Signed-off-by: Eric Blake <[email protected]>
Message-Id: <20171108215703[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
block/nbd-client.c

index b44d4d4a01c5202623194154bc8ed26b28b667b4..de6c153328f8178940f3b61d6abd3f774d4359f4 100644 (file)
@@ -248,7 +248,7 @@ static int nbd_parse_error_payload(NBDStructuredReplyChunk *chunk,
 
     error = nbd_errno_to_system_errno(payload_advance32(&payload));
     if (error == 0) {
-        error_setg(errp, "Protocol error: server sent structured error chunk"
+        error_setg(errp, "Protocol error: server sent structured error chunk "
                          "with error = 0");
         return -EINVAL;
     }
@@ -257,7 +257,7 @@ static int nbd_parse_error_payload(NBDStructuredReplyChunk *chunk,
     message_size = payload_advance16(&payload);
 
     if (message_size > chunk->length - sizeof(error) - sizeof(message_size)) {
-        error_setg(errp, "Protocol error: server sent structured error chunk"
+        error_setg(errp, "Protocol error: server sent structured error chunk "
                          "with incorrect message size");
         return -EINVAL;
     }
@@ -408,7 +408,7 @@ static coroutine_fn int nbd_co_do_receive_one_chunk(
     if (chunk->type == NBD_REPLY_TYPE_NONE) {
         if (!(chunk->flags & NBD_REPLY_FLAG_DONE)) {
             error_setg(errp, "Protocol error: NBD_REPLY_TYPE_NONE chunk without"
-                             "NBD_REPLY_FLAG_DONE flag set");
+                       NBD_REPLY_FLAG_DONE flag set");
             return -EINVAL;
         }
         return 0;
This page took 0.039144 seconds and 4 git commands to generate.