]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-netapp: update err messages
authorMartin George <marting@netapp.com>
Fri, 29 Nov 2024 05:45:23 +0000 (11:15 +0530)
committerDaniel Wagner <wagi@monom.org>
Mon, 2 Dec 2024 14:02:14 +0000 (15:02 +0100)
Trivial fix to update a few error messages.

Signed-off-by: Martin George <marting@netapp.com>
plugins/netapp/netapp-nvme.c

index 6ff428d98b4d78de138c4ac4b88ab7a28dacee5a..aee65215bf4fb96382ea0f9b3c531262de53f93d 100644 (file)
@@ -816,7 +816,7 @@ static int netapp_smdevices(int argc, char **argv, struct command *command,
 
        num = scandir(dev_path, &devices, netapp_nvme_filter, alphasort);
        if (num <= 0) {
-               fprintf(stderr, "No NVMe devices detected.\n");
+               fprintf(stderr, "No NVMe devices detected\n");
                return num;
        }
 
@@ -834,7 +834,7 @@ static int netapp_smdevices(int argc, char **argv, struct command *command,
 
        smdevices = calloc(num, sizeof(*smdevices));
        if (!smdevices) {
-               fprintf(stderr, "Unable to allocate memory for devices.\n");
+               fprintf(stderr, "Unable to allocate memory for devices\n");
                return -ENOMEM;
        }
 
@@ -921,13 +921,13 @@ static int netapp_ontapdevices(int argc, char **argv, struct command *command,
 
        num = scandir(dev_path, &devices, netapp_nvme_filter, alphasort);
        if (num <= 0) {
-               fprintf(stderr, "No NVMe devices detected.\n");
+               fprintf(stderr, "No NVMe devices detected\n");
                return num;
        }
 
        ontapdevices = calloc(num, sizeof(*ontapdevices));
        if (!ontapdevices) {
-               fprintf(stderr, "Unable to allocate memory for devices.\n");
+               fprintf(stderr, "Unable to allocate memory for devices\n");
                return -ENOMEM;
        }