lib/nvmf: Use %z for portability
POSIX defines %z for printing size_t values in a portable way. Replace a reference to %ld to remove the assumption about the type of size_t. Signed-off-by: Nick Connolly <nick.connolly@mayadata.io> Change-Id: I2186aa5e7072f565ea75de935e22c2c23acf1a1a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8341 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
27f2d113c1
commit
f973413886
@ -1609,7 +1609,7 @@ nvmf_ctrlr_set_features_host_behavior_support(struct spdk_nvmf_request *req)
|
||||
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
||||
}
|
||||
if (req->iov[0].iov_len != sizeof(struct spdk_nvme_host_behavior)) {
|
||||
SPDK_ERRLOG("Host Behavior Support invalid iov_len: %ld\n", req->iov[0].iov_len);
|
||||
SPDK_ERRLOG("Host Behavior Support invalid iov_len: %zd\n", req->iov[0].iov_len);
|
||||
response->status.sct = SPDK_NVME_SCT_GENERIC;
|
||||
response->status.sc = SPDK_NVME_SC_INVALID_FIELD;
|
||||
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
||||
|
Loading…
Reference in New Issue
Block a user