@@ -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