diff options
| author | Eric Blake | 2017-11-13 16:24:24 +0100 |
|---|---|---|
| committer | Eric Blake | 2017-11-17 15:02:45 +0100 |
| commit | cb6b1a3fc30c52ffd94ed0b69ca5991b19651724 (patch) | |
| tree | 8c38d9416a14bb411219670a00520622a44992ba /include/exec/cpu-common.h | |
| parent | nbd: Don't crash when server reports NBD_CMD_READ failure (diff) | |
| download | qemu-cb6b1a3fc30c52ffd94ed0b69ca5991b19651724.tar.gz qemu-cb6b1a3fc30c52ffd94ed0b69ca5991b19651724.tar.xz qemu-cb6b1a3fc30c52ffd94ed0b69ca5991b19651724.zip | |
nbd/client: Use error_prepend() correctly
When using error prepend(), it is necessary to end with a space
in the format string; otherwise, messages come out incorrectly,
such as when connecting to a socket that hangs up immediately:
can't open device nbd://localhost:10809/: Failed to read dataUnexpected end-of-file before all bytes were read
Originally botched in commit e44ed99d, then several more instances
added in the meantime.
Pre-existing and not fixed here: we are inconsistent on capitalization;
some of our messages start with lower case, and others start with upper,
although the use of error_prepend() is much nicer to read when all
fragments consistently start with lower.
CC: qemu-stable@nongnu.org
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20171113152424.25381-1-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include/exec/cpu-common.h')
0 files changed, 0 insertions, 0 deletions
