]> xenbits.xensource.com Git - people/pauldu/qemu.git/commit
nbd: Include error names in trace messages
authorEric Blake <eblake@redhat.com>
Fri, 27 Oct 2017 10:40:26 +0000 (12:40 +0200)
committerEric Blake <eblake@redhat.com>
Mon, 30 Oct 2017 20:07:21 +0000 (21:07 +0100)
commite7a78d0eff820b56d33be31af1bb49e2948374fd
tree89887ad46bd17d537a529b25d448271124ac174b
parentabf6e752e55b2f5afb48303429dea2db7c3a62de
nbd: Include error names in trace messages

NBD errors were originally sent over the wire based on Linux errno
values; but not all the world is Linux, and not all platforms share
the same values.  Since a number isn't very easy to decipher on all
platforms, update the trace messages to include the name of NBD
errors being sent/received over the wire.  Tweak the trace messages
to be at the point where we are using the NBD error, not the
translation to the host errno values.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20171027104037.8319-2-eblake@redhat.com>
nbd/client.c
nbd/common.c
nbd/nbd-internal.h
nbd/server.c
nbd/trace-events