]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: Simplify description for virt-mgmt
authorMinwoo Im <minwoo.im.dev@gmail.com>
Sun, 7 Apr 2019 10:30:25 +0000 (19:30 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Sun, 7 Apr 2019 10:30:25 +0000 (19:30 +0900)
The options of virt-mgmt subcommand can be simplified for a good
readability.  This patch not only adds necessary whitespace between
sentences, but remove unnecessary empty line and words which might cause
too long line to describe options.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index dca029adb7de20ec2b30d303e7f4e6e21eeb5628..6dc51969d415d84999b348065821aa0a2c7999c4 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -2205,21 +2205,20 @@ static int get_ns_id(int argc, char **argv, struct command *cmd, struct plugin *
 static int virtual_mgmt(int argc, char **argv, struct command *cmd, struct plugin *plugin)
 {
        const char *desc  = "The Virtualization Management command is supported by primary controllers "\
-               "that support the Virtualization Enhancements capability.This command is used for "\
-               "1. Modifying Flexible Resource allocation for the primary controller  "\
-               "2. Assigning Flexible Resources for secondary controllers; and "\
-               "3. Setting the Online and Offline state for secondary controllers";
-       const char *cntlid = "This field indicates the controller for which controller resources "\
-               "are to be modified.";
-       const char *rt = "Indicate the Resource Type (RT) : \n"\
-               "1. 0 - VQ Resources.\n"\
-               "2. 1 - VI Resources.\n\n";
-       const char *act = "Indicate the Action (ACT) : \n"\
-               "1. 1 - Primary Controller Flexible Allocation\n"\
-               "2. 7 - Secondary Controller Offline\n"\
-               "3. 8 - Secondary Controller Assign\n"\
-               "4. 9 - Secondary Controller Online";
-       const char *nr = "Indicate the Number of Controller Resources (NR)";
+               "that support the Virtualization Enhancements capability. This command is used for:\n"\
+               "  1. Modifying Flexible Resource allocation for the primary controller\n"\
+               "  2. Assigning Flexible Resources for secondary controllers\n"\
+               "  3. Setting the Online and Offline state for secondary controllers";
+       const char *cntlid = "Controller Identifier(CNTLID)";
+       const char *rt = "Resource Type(RT): [0,1]\n"\
+               "0h: VQ Resources\n"\
+               "1h: VI Resources";
+       const char *act = "Action(ACT): [1,7,8,9]\n"\
+               "1h: Primary Flexible\n"\
+               "7h: Secondary Offline\n"\
+               "8h: Secondary Assign\n"\
+               "9h: Secondary Online";
+       const char *nr = "Number of Controller Resources(NR)";
        int fd, err;
        __u32 result;