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:
parent
77f994a9c5
commit
53d172b0e3
@ -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("\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)));
|
printf("\t Core Mask: 0x%s\n", spdk_cpuset_fmt(spdk_thread_get_cpumask(job->thread)));
|
||||||
if (job->verify) {
|
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);
|
job->ios_base, job->size_in_ios);
|
||||||
}
|
}
|
||||||
if (stats->ema_period == 0) {
|
if (stats->ema_period == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user