]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
correct some prompt
authorWei Hou <wei.hou@scaleflux.com>
Mon, 29 Jun 2020 04:58:52 +0000 (12:58 +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 bc9d8899a5d9ea1655f4db3c4534f395bc9d8a7d..3b2760bccc532a4c11d6cc3647b51418ad9dc6e7 100644 (file)
@@ -790,7 +790,7 @@ static int change_cap(int argc, char **argv, struct command *cmd, struct plugin
        if (err < 0)
                perror("sfx-change-cap");
        else if (err != 0)
-               fprintf(stderr, "NVME IO command error:%s(%x)\n",
+               fprintf(stderr, "NVMe IO command error:%s(%x)\n",
                                nvme_status_to_string(err), err);
        else {
                printf("ScaleFlux change-capacity: success\n");
@@ -935,10 +935,10 @@ static int sfx_set_feature(int argc, char **argv, struct command *cmd, struct pl
        err = nvme_sfx_set_features(fd, cfg.namespace_id, cfg.feature_id, cfg.value);
 
        if (err < 0) {
-               perror("Scaleflux-set-feature");
+               perror("ScaleFlux-set-feature");
                return errno;
        } else if (!err) {
-               printf("Scaleflux set-feature:%#02x (%s), value:%d\n", cfg.feature_id,
+               printf("ScaleFlux set-feature:%#02x (%s), value:%d\n", cfg.feature_id,
                        sfx_feature_to_string(cfg.feature_id), cfg.value);
        } else if (err > 0)
                fprintf(stderr, "NVMe Status:%s(%x)\n",