diff options
author | Eric Blake <eblake@redhat.com> | 2017-07-17 14:26:34 -0500 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2017-07-17 17:06:30 -0500 |
commit | 48000eb3ecfc91f6588dfafba51d57e7f8f28b7e (patch) | |
tree | 68d3f11207ceaf8f4740b37526b4f8ef586f2003 /nbd/client.c | |
parent | 9a76bd783d0421962e8c65bb853a57eef4897720 (diff) |
nbd: Trace client command being sent
Make the client trace slightly more legible by including the name
of the command being sent.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-Id: <20170717192635.17880-2-eblake@redhat.com>
Diffstat (limited to 'nbd/client.c')
-rw-r--r-- | nbd/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nbd/client.c b/nbd/client.c index 846bdc394c..509ed5e4ba 100644 --- a/nbd/client.c +++ b/nbd/client.c @@ -901,7 +901,8 @@ ssize_t nbd_send_request(QIOChannel *ioc, NBDRequest *request) uint8_t buf[NBD_REQUEST_SIZE]; trace_nbd_send_request(request->from, request->len, request->handle, - request->flags, request->type); + request->flags, request->type, + nbd_cmd_lookup(request->type)); stl_be_p(buf, NBD_REQUEST_MAGIC); stw_be_p(buf + 4, request->flags); |