mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
nbd/client: Trace all server option error messages
Not all servers send free-form text alongside option error replies, but for servers that do (such as qemu), we pass the server's message as a hint alongside our own error reporting. However, it would also be useful to trace such server messages, since we can't guarantee how the hint may be consumed. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20181218225714.284495-3-eblake@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
This commit is contained in:
@@ -171,6 +171,8 @@ static int nbd_handle_reply_err(QIOChannel *ioc, NBDOptionReply *reply,
|
||||
goto cleanup;
|
||||
}
|
||||
msg[reply->length] = '\0';
|
||||
trace_nbd_server_error_msg(reply->type,
|
||||
nbd_reply_type_lookup(reply->type), msg);
|
||||
}
|
||||
|
||||
switch (reply->type) {
|
||||
|
||||
Reference in New Issue
Block a user