aboutsummaryrefslogtreecommitdiff
path: root/nbd
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2017-08-10 20:57:48 -0500
committerEric Blake <eblake@redhat.com>2017-08-15 10:03:27 -0500
commitdad3946ec64164b1855e09991be0dfc4358298b4 (patch)
tree370eb1158e7d325e389a240cd0de40f6d102e712 /nbd
parent47025a0193f1f910300adfa443305ccf8482ef87 (diff)
nbd: Fix trace message for disconnect
NBD_CMD_DISC is a disconnect request, not a data discard request. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20170811015749.20365-1-eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'nbd')
-rw-r--r--nbd/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nbd/common.c b/nbd/common.c
index a2f28f2eec..e288d1b972 100644
--- a/nbd/common.c
+++ b/nbd/common.c
@@ -182,7 +182,7 @@ const char *nbd_cmd_lookup(uint16_t cmd)
case NBD_CMD_WRITE:
return "write";
case NBD_CMD_DISC:
- return "discard";
+ return "disconnect";
case NBD_CMD_FLUSH:
return "flush";
case NBD_CMD_TRIM: