]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
correct some prompt
authorWei Hou <wei.hou@scaleflux.com>
Mon, 29 Jun 2020 04:53:59 +0000 (12:53 +0800)
committerKeith Busch <kbusch@kernel.org>
Tue, 30 Jun 2020 17:31:36 +0000 (11:31 -0600)
Signed-off-by: Wei Hou <wei.hou@scaleflux.com>
plugins/scaleflux/sfx-nvme.c

index 6226679efa8406fb3c60a4f72cd0d9527f7e5d2e..bc9d8899a5d9ea1655f4db3c4534f395bc9d8a7d 100644 (file)
@@ -778,11 +778,10 @@ static int change_cap(int argc, char **argv, struct command *cmd, struct plugin
                cfg.capacity_in_gb, cfg.cap_in_byte, cap_in_4k);
 
        if (change_sanity_check(fd, cap_in_4k, &shrink)) {
-               printf("Scaleflux change-capacity: fail\n");
+               printf("ScaleFlux change-capacity: fail\n");
                return err;
        }
 
-
        if (!cfg.force && shrink && !sfx_confirm_change("Changing Cap may irrevocably delete this device's data")) {
                return 0;
        }
@@ -794,7 +793,7 @@ static int change_cap(int argc, char **argv, struct command *cmd, struct plugin
                fprintf(stderr, "NVME IO command error:%s(%x)\n",
                                nvme_status_to_string(err), err);
        else {
-               printf("Scaleflux change-capacity: success\n");
+               printf("ScaleFlux change-capacity: success\n");
                ioctl(fd, BLKRRPART);
        }
        return err;
@@ -909,7 +908,7 @@ static int sfx_set_feature(int argc, char **argv, struct command *cmd, struct pl
                                        perror("identify-namespace");
                                else
                                        fprintf(stderr,
-                                               "NVME Admin command error:%s(%x)\n",
+                                               "NVMe Admin command error:%s(%x)\n",
                                                nvme_status_to_string(err), err);
                                return err;
                        }
@@ -917,7 +916,7 @@ static int sfx_set_feature(int argc, char **argv, struct command *cmd, struct pl
                         * atomic only support with sector-size = 4k now
                         */
                        if ((ns.flbas & 0xf) != 1) {
-                               printf("Please change-sector size to 4K, then retry!!!\n");
+                               printf("Please change-sector size to 4K, then retry\n");
                                return EFAULT;
                        }
                }