From: Martin George Date: Sun, 27 Oct 2024 17:36:10 +0000 (+0530) Subject: netapp-smdev: add err msg for no smdevices X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=818ce843a38181aac4f5fb3c6ecdc1fea2f26e6e;p=users%2Fsagi%2Fnvme-cli.git netapp-smdev: add err msg for no smdevices Print an error message if no smdevices on the host. Signed-off-by: Martin George --- diff --git a/plugins/netapp/netapp-nvme.c b/plugins/netapp/netapp-nvme.c index 9e95e5a8..4c98700d 100644 --- a/plugins/netapp/netapp-nvme.c +++ b/plugins/netapp/netapp-nvme.c @@ -752,7 +752,8 @@ static int netapp_smdevices(int argc, char **argv, struct command *command, else if (fmt == NJSON) netapp_smdevices_print_json(smdevices, num_smdevices, devname); - } + } else + fprintf(stderr, "No smdevices detected\n"); for (i = 0; i < num; i++) free(devices[i]);