ut/bdev.c: Use PRIu64 for portability
POSIX defines PRId64/PRIu64/PRIx64 for printing 64-bit values in a portable way. Replace a reference to %lu to remove the assumption about the size of a long. Signed-off-by: Nick Connolly <nick.connolly@mayadata.io> Change-Id: Id5690eb2ad501eaacb4b266981b4dba128a7b174 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8340 Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
c269de97eb
commit
27f2d113c1
@ -4654,7 +4654,7 @@ bdev_multi_allocation(void)
|
||||
height = rb_tree_get_height(&bdev[j]->internal.bdev_name);
|
||||
CU_ASSERT(height <= (int)(spdk_u32log2(j + 1)));
|
||||
}
|
||||
SPDK_NOTICELOG("alloc bdev num %d takes %lu ms\n", bdev_num,
|
||||
SPDK_NOTICELOG("alloc bdev num %d takes %" PRIu64 " ms\n", bdev_num,
|
||||
(get_ns_time() - last_time) / 1000 / 1000);
|
||||
for (j = 0; j < bdev_num; j++) {
|
||||
CU_ASSERT(spdk_bdev_get_by_name(name[j]) != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user