Skip to content

Commit 6f1f902

Browse files
martin-gpyigaw
authored andcommitted
nvme-netapp: update err messages
Trivial fix to update a few error messages. Signed-off-by: Martin George <[email protected]>
1 parent b5208a9 commit 6f1f902

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/netapp/netapp-nvme.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ static int netapp_smdevices(int argc, char **argv, struct command *command,
816816

817817
num = scandir(dev_path, &devices, netapp_nvme_filter, alphasort);
818818
if (num <= 0) {
819-
fprintf(stderr, "No NVMe devices detected.\n");
819+
fprintf(stderr, "No NVMe devices detected\n");
820820
return num;
821821
}
822822

@@ -834,7 +834,7 @@ static int netapp_smdevices(int argc, char **argv, struct command *command,
834834

835835
smdevices = calloc(num, sizeof(*smdevices));
836836
if (!smdevices) {
837-
fprintf(stderr, "Unable to allocate memory for devices.\n");
837+
fprintf(stderr, "Unable to allocate memory for devices\n");
838838
return -ENOMEM;
839839
}
840840

@@ -921,13 +921,13 @@ static int netapp_ontapdevices(int argc, char **argv, struct command *command,
921921

922922
num = scandir(dev_path, &devices, netapp_nvme_filter, alphasort);
923923
if (num <= 0) {
924-
fprintf(stderr, "No NVMe devices detected.\n");
924+
fprintf(stderr, "No NVMe devices detected\n");
925925
return num;
926926
}
927927

928928
ontapdevices = calloc(num, sizeof(*ontapdevices));
929929
if (!ontapdevices) {
930-
fprintf(stderr, "Unable to allocate memory for devices.\n");
930+
fprintf(stderr, "Unable to allocate memory for devices\n");
931931
return -ENOMEM;
932932
}
933933

0 commit comments

Comments
 (0)