nbd/client: Trace all server option error messages
commitbee21ef0950c8b109d3bad05a3c3f2d94ec1a3af
authorEric Blake <eblake@redhat.com>
Tue, 18 Dec 2018 22:57:13 +0000 (18 16:57 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 4 Jan 2019 23:34:58 +0000 (4 17:34 -0600)
tree34140e8cf9e09608a3567fc4e4b60e490cce383b
parent757a0d05ea22d63e667db08a80b6ec6f1d53a12f
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>
nbd/client.c
nbd/trace-events