From: Francis Pravin Date: Mon, 13 May 2024 08:56:44 +0000 (+0530) Subject: nvme: fix fw-commit MUD result message X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e15c260aafc7405d8ab8ca9c7d3e6bbadea26f3b;p=users%2Fsagi%2Fnvme-cli.git nvme: fix fw-commit MUD result message As per spec, 0th bit is set when the controller detects an overlapping firmware/boot partition image update command sequence due to processing a command from an Admin Submission Queue on a controller and the 1st bit is set due to processing the command from Management Endpoint. So, fixed the MUD result message. Signed-off-by: Francis Pravin --- diff --git a/nvme.c b/nvme.c index 5409ddf2..d722b91e 100644 --- a/nvme.c +++ b/nvme.c @@ -5019,11 +5019,11 @@ static void fw_commit_print_mud(struct nvme_dev *dev, __u32 result) if (result & 0x1) printf("Detected an overlapping firmware/boot partition image update command\n" - "sequence due to processing a command from a Management Endpoint"); + "sequence due to processing a command from an Admin SQ on a controller\n"); if (result >> 1 & 0x1) printf("Detected an overlapping firmware/boot partition image update command\n" - "sequence due to processing a command from an Admin SQ on a controller"); + "sequence due to processing a command from a Management Endpoint\n"); } static int fw_commit(int argc, char **argv, struct command *cmd, struct plugin *plugin)