Explorar el Código

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>
Guan Junxiong hace 8 años
padre
commit
9b483da15d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      drivers/nvme/host/fabrics.c

+ 1 - 0
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;
 			}