test/bdev: Use PRIx64 for portability

POSIX defines PRIx64 for printing 64-bit values in a portable way.
Replace references to %lx to remove the assumption about the size
of a long.

Signed-off-by: Nick Connolly <nick.connolly@mayadata.io>
Change-Id: I40374212baf64028f77f87c3a7f0373f6cdb1415
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6003
Community-CI: Broadcom CI
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Nick Connolly 2021-01-20 17:02:23 +00:00 committed by Tomasz Zawadzki
parent 77f994a9c5
commit 53d172b0e3

View File

@ -229,7 +229,7 @@ performance_dump_job(struct bdevperf_aggregate_stats *stats, struct bdevperf_job
printf("\r Thread name: %s\n", spdk_thread_get_name(job->thread));
printf("\t Core Mask: 0x%s\n", spdk_cpuset_fmt(spdk_thread_get_cpumask(job->thread)));
if (job->verify) {
printf("\t Verification LBA range: start 0x%lx length 0x%lx\n",
printf("\t Verification LBA range: start 0x%" PRIx64 " length 0x%" PRIx64 "\n",
job->ios_base, job->size_in_ios);
}
if (stats->ema_period == 0) {