Skip to content

Commit 818ce84

Browse files
martin-gpyigaw
authored andcommitted
netapp-smdev: add err msg for no smdevices
Print an error message if no smdevices on the host. Signed-off-by: Martin George <marting@netapp.com>
1 parent e6d0d47 commit 818ce84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/netapp/netapp-nvme.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,8 @@ static int netapp_smdevices(int argc, char **argv, struct command *command,
752752
else if (fmt == NJSON)
753753
netapp_smdevices_print_json(smdevices,
754754
num_smdevices, devname);
755-
}
755+
} else
756+
fprintf(stderr, "No smdevices detected\n");
756757

757758
for (i = 0; i < num; i++)
758759
free(devices[i]);

0 commit comments

Comments
 (0)