From 8e28c3960b204fcfafd3566064a72dd01128a704 Mon Sep 17 00:00:00 2001 From: Martin George Date: Thu, 11 Jan 2024 15:36:46 +0530 Subject: [PATCH] nvme: print inserted tls key for check-tls-key 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 --- nvme.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvme.c b/nvme.c index 872dc89aee..25bf1c26f2 100644 --- a/nvme.c +++ b/nvme.c @@ -8767,6 +8767,7 @@ static int check_tls_key(int argc, char **argv, struct command *command, struct 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; @@ -8774,7 +8775,7 @@ static int check_tls_key(int argc, char **argv, struct command *command, struct 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; }