From dad3946ec64164b1855e09991be0dfc4358298b4 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 10 Aug 2017 20:57:48 -0500 Subject: [PATCH] nbd: Fix trace message for disconnect NBD_CMD_DISC is a disconnect request, not a data discard request. Signed-off-by: Eric Blake Message-Id: <20170811015749.20365-1-eblake@redhat.com> Reviewed-by: Stefan Hajnoczi --- nbd/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: