summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorGuan Junxiong <guanjunxiong@huawei.com>2017-08-03 15:40:26 +0200
committerSagi Grimberg <sagi@grimberg.me>2017-08-28 22:00:37 +0200
commit9b483da15dd0c94b62ae4e789b37dfff4410f45e (patch)
tree1977bac20ba15dc3732f53da20407a4e6ae8d302 /drivers/nvme
parentnvme-rdma: call ops->reg_read64 instead of nvmf_reg_read64 (diff)
downloadlinux-9b483da15dd0c94b62ae4e789b37dfff4410f45e.tar.xz
linux-9b483da15dd0c94b62ae4e789b37dfff4410f45e.zip
nvme-fabrics: log a warning if hostid is invalid
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>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/fabrics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
index 5f5cd306f76d..fc3b6552f467 100644
--- a/drivers/nvme/host/fabrics.c
+++ b/drivers/nvme/host/fabrics.c
@@ -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;
}