nvme-fabrics: log a warning if hostid is invalid
authorGuan Junxiong <guanjunxiong@huawei.com>
Thu, 3 Aug 2017 13:40:26 +0000 (21:40 +0800)
committerSagi Grimberg <sagi@grimberg.me>
Mon, 28 Aug 2017 20:00:37 +0000 (23:00 +0300)
This helps users to quickly spot the reason of why connection fails
if the hostid is not compliant with the uuid format.

Signed-off-by: Guan Junxiong <guanjunxiong@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c

index 5f5cd306f76d05e8cb7351cb91403d7f9a554d9a..fc3b6552f46750fd1187052bf91c73596cf82836 100644 (file)
@@ -735,6 +735,7 @@ static int nvmf_parse_options(struct nvmf_ctrl_options *opts,
                                goto out;
                        }
                        if (uuid_parse(p, &hostid)) {
+                               pr_err("Invalid hostid %s\n", p);
                                ret = -EINVAL;
                                goto out;
                        }