Commit 62f5c528 authored by Marcin Spiewak's avatar Marcin Spiewak Committed by Tomasz Zawadzki
Browse files

bdev/nvme: wrong key in ERRLOG message



In nvme_ctrlr_create() function, wrong key was
passed to SPDK_ERRLOG(). It was ctx->drv_opts.tls_psk,
while it should be ctx->drv_opts.dhchap_key.
Now it is fixed.

Change-Id: Ia6b71ed14b7c08803a494ceabea03d6bd657121b
Signed-off-by: default avatarMarcin Spiewak <marcin.spiewak@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22683


Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
parent d34d8172
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5404,7 +5404,7 @@ nvme_ctrlr_create(struct spdk_nvme_ctrlr *ctrlr,
							 spdk_key_get_name(ctx->drv_opts.dhchap_key));
			if (nvme_ctrlr->dhchap_key == NULL) {
				SPDK_ERRLOG("Couldn't get a reference to the key '%s'\n",
					    spdk_key_get_name(ctx->drv_opts.tls_psk));
					    spdk_key_get_name(ctx->drv_opts.dhchap_key));
				rc = -ENOKEY;
				goto err;
			}