io: fix copy+paste mistake in socket error message

s/write/read/ in the error message reported after
readmsg() fails

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2016-03-08 12:06:30 +00:00
parent 294bbbb425
commit 5151d23e65

View File

@ -569,7 +569,7 @@ static ssize_t qio_channel_socket_readv(QIOChannel *ioc,
goto retry; goto retry;
} else { } else {
error_setg_errno(errp, socket_error(), error_setg_errno(errp, socket_error(),
"Unable to write to socket"); "Unable to read from socket");
return -1; return -1;
} }
} }