nvmf/ctrlr: add debug log for volatile write cache
Add debug log in set feature, spdk_nvmf_ctrlr_set_features_volatile_write_cache to indicate the volatile write cache is disabled or enabled according to the conditon. Change-Id: Idc0a7fb461e2bbf1371d4a3faf5d839c7370bb65 Signed-off-by: yidong0635 <dongx.yi@intel.com> Reviewed-on: https://review.gerrithub.io/428953 Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
a17d17de3e
commit
decb59575b
@ -796,6 +796,8 @@ spdk_nvmf_ctrlr_set_features_volatile_write_cache(struct spdk_nvmf_request *req)
|
||||
ctrlr->feat.volatile_write_cache.raw = cmd->cdw11;
|
||||
ctrlr->feat.volatile_write_cache.bits.reserved = 0;
|
||||
|
||||
SPDK_DEBUGLOG(SPDK_LOG_NVMF, "Set Features - Volatile Write Cache %s\n",
|
||||
ctrlr->feat.volatile_write_cache.bits.wce ? "Enabled" : "Disabled");
|
||||
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user