From: Martin George Date: Thu, 11 Jan 2024 10:06:46 +0000 (+0530) Subject: nvme: print inserted tls key for check-tls-key X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4dde751dd1d374c7295ea15b4097b46d79129ce2;p=users%2Fsagi%2Fnvme-cli.git 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 --- diff --git a/nvme.c b/nvme.c index 872dc89a..25bf1c26 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; }