diff options
author | Guan Junxiong <guanjunxiong@huawei.com> | 2017-08-03 16:40:26 +0300 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2017-08-28 23:00:37 +0300 |
commit | 9b483da15dd0c94b62ae4e789b37dfff4410f45e (patch) | |
tree | 1977bac20ba15dc3732f53da20407a4e6ae8d302 /drivers/nvme/host | |
parent | 09fdc23b29618127709711606d4fa439a6839852 (diff) | |
download | linux-9b483da15dd0c94b62ae4e789b37dfff4410f45e.tar.xz |
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/host')
-rw-r--r-- | drivers/nvme/host/fabrics.c | 1 |
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; } |