nvme check-tls-key currently misses out successfully printing
the inserted tls key, so print the same. And while we are it,
fix a small typo while printing the error message related to
the failure of generating the identity key.
Signed-off-by: Martin George <marting@netapp.com>
nvme_show_error("Failed to insert key, error %d", errno);
return -errno;
}
+ printf("Inserted TLS key %08x\n", (unsigned int)tls_key);
} else {
char *tls_id;
cfg.subsysnqn, cfg.identity,
hmac, decoded_key, decoded_len);
if (!tls_id) {
- nvme_show_error("Failed to generated identity, error %d",
+ nvme_show_error("Failed to generate identity, error %d",
errno);
return -errno;
}