5c5a44f008
POSIX defines PRId64/PRIu64/PRIx64 for printing 64-bit values in a portable way. Replace a few references to %ld to remove the assumption about the size of a long. Similarly, use %z with size_t arguments. Where the value being printed is an unsigned 64-bit value, use PRIu64 instead of %ld. Add a cast when comparing an enum to an integer value. Add an explicit uint64_t cast to the definition of BLOCK_CNT to prevent value truncation. Signed-off-by: Nick Connolly <nick.connolly@mayadata.io> Change-Id: I093cffe7e79bc04eba012f4ffaf33062a642d062 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5137 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
aer | ||
cuse | ||
deallocated_value | ||
e2edp | ||
err_injection | ||
overhead | ||
perf | ||
reserve | ||
reset | ||
sgl | ||
startup | ||
hotplug.sh | ||
hw_hotplug.sh | ||
Makefile | ||
nvme_opal.sh | ||
nvme_rpc.sh | ||
nvme.sh | ||
spdk_nvme_cli.sh |