From 6f1f902af071fc46b78485ce851ffaaeb444c25f Mon Sep 17 00:00:00 2001 From: Martin George Date: Fri, 29 Nov 2024 11:15:23 +0530 Subject: [PATCH] nvme-netapp: update err messages Trivial fix to update a few error messages. Signed-off-by: Martin George --- plugins/netapp/netapp-nvme.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/netapp/netapp-nvme.c b/plugins/netapp/netapp-nvme.c index 6ff428d9..aee65215 100644 --- a/plugins/netapp/netapp-nvme.c +++ b/plugins/netapp/netapp-nvme.c @@ -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; } -- 2.43.5