numam-spdk/test/nvme
Nick Connolly 5c5a44f008 test: Use PRId64 for portability
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>
2020-11-19 09:53:05 +00:00
..
aer test/nvme: Use spdk_nvme_detach_async() and spdk_nvme_detach_poll_async() 2020-10-20 16:55:55 +00:00
cuse test: add some missing stubs 2020-11-02 11:23:21 +00:00
deallocated_value test/deallocated : Fix memory leak about context. 2020-09-28 08:30:38 +00:00
e2edp test/nvme: Use spdk_nvme_detach_async() and spdk_nvme_detach_poll_async() 2020-10-20 16:55:55 +00:00
err_injection test/nvme: Use spdk_nvme_detach_async() and spdk_nvme_detach_poll_async() 2020-10-20 16:55:55 +00:00
overhead test/nvme: Use spdk_nvme_detach_async() and spdk_nvme_detach_poll_async() 2020-10-20 16:55:55 +00:00
perf perf/nvme: simplify discover_bdevs() 2020-10-16 08:15:26 +00:00
reserve test/nvme: Use spdk_nvme_detach_async() and spdk_nvme_detach_poll_async() 2020-10-20 16:55:55 +00:00
reset test: Use PRId64 for portability 2020-11-19 09:53:05 +00:00
sgl test/nvme: Use spdk_nvme_detach_async() and spdk_nvme_detach_poll_async() 2020-10-20 16:55:55 +00:00
startup test/nvme: Use spdk_nvme_detach_async() and spdk_nvme_detach_poll_async() 2020-10-20 16:55:55 +00:00
hotplug.sh nvme/hotplug.sh: Copy external DPDK libs into test VM 2020-10-30 16:13:59 +00:00
hw_hotplug.sh hw_hotplug: Fix HW hotplug test 2020-07-21 09:23:09 +00:00
Makefile test/nvme: dynamic nvme cuse devices update test 2020-06-05 09:01:44 +00:00
nvme_opal.sh test/opal: add a trap for opal_revert_and_init() 2020-08-19 07:30:04 +00:00
nvme_rpc.sh build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
nvme.sh scripts/setup remove flakiness from tests 2020-09-09 07:19:43 +00:00
spdk_nvme_cli.sh test/common: move nvme-cli compilation to common script 2020-07-06 23:22:59 +00:00