The generated string is directly used in nvme_lookup_host() and
might cause mismatches due to the inclusion of a trailing newline.
if (ret < 0)
return NULL;
- if (asprintf(&hostnqn, "nqn.2014-08.org.nvmexpress:uuid:%s\n", uuid_str) < 0)
+ if (asprintf(&hostnqn, "nqn.2014-08.org.nvmexpress:uuid:%s", uuid_str) < 0)
return NULL;
return hostnqn;
/**
* nvmf_hostnqn_generate() - Generate a machine specific host nqn
- * Returns: An nvm namespace qualifieid name string based on the machine
+ * Returns: An nvm namespace qualified name string based on the machine
* identifier, or NULL if not successful.
*/
char *nvmf_hostnqn_generate();