Skip to content

Commit

Permalink
nvme-netapp: update err messages
Browse files Browse the repository at this point in the history
Trivial fix to update a few error messages.

Signed-off-by: Martin George <marting@netapp.com>
  • Loading branch information
martin-gpy authored and igaw committed Dec 2, 2024
1 parent b5208a9 commit 6f1f902
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/netapp/netapp-nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 6f1f902

Please sign in to comment.