Spdk/test/unit/lib
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
..
bdev test: Use PRId64 for portability 2020-11-19 09:53:05 +00:00
blob lib/blob: extent_page shall never occupy md page 0 2020-10-16 08:15:16 +00:00
blobfs blobfs_bdev: Use spdk_bdev_create_bs_dev_ext() instead of spdk_bdev_create_bs_dev_from_desc() 2020-10-20 08:52:29 +00:00
event app_ut: add stubs required w/ clang build 2020-11-05 09:38:48 +00:00
ftl test/unit/lib/ftl: Add unit test stubs 2020-11-19 09:50:13 +00:00
idxd test/unit/lib/idxd: Add unit test stubs 2020-11-19 09:49:53 +00:00
ioat ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
iscsi test: Use PRId64 for portability 2020-11-19 09:53:05 +00:00
json json: add spdk_json_free_object() 2020-10-19 10:02:10 +00:00
jsonrpc lib/jsonrpc: remove spdk_ prefix from internal functions. 2020-05-11 12:29:07 +00:00
log log: simplify SPDK_LOG_REGISTER_COMPONENT 2020-10-14 08:00:35 +00:00
lvol lvol: let thin_provision flag be consistent with Blob 2020-05-22 10:42:28 +00:00
notify ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
nvme test/unit/lib/nvme: Add unit test stubs 2020-11-19 09:49:41 +00:00
nvmf test/unit/lib/nvmf: Add unit test stubs 2020-11-19 09:52:39 +00:00
reduce test: add generic unlink wrapper 2020-05-06 12:43:57 +00:00
scsi test/unit/lib/scsi: Add unit test stubs 2020-11-19 09:47:06 +00:00
sock test/unit/lib/sock: Add unit test stubs 2020-11-19 09:46:52 +00:00
thread lib/thread: remove _spdk prefix. 2020-06-01 13:07:30 +00:00
util cpuset: fix parse_mask 2020-08-27 08:34:07 +00:00
vhost test/unit/lib/vhost: Add unit test stubs 2020-11-19 09:47:54 +00:00
json_mock.c subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
Makefile lib/idxd: add unit test framework and first unit test 2020-04-23 15:48:32 +00:00