example/nvme_manage: change ranges to correct type on scanf()
scanf format specification '%ld' expects type 'long int *' for 'd', but parameter 2 had a different type 'uint64_t*'. Changed to SCNu64 to reflect the type for range_length and range_start. Change-Id: I1637b2f7e982a33b45bc765a3e16f7f1302d84cb Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/462481 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
3500d9a98d
commit
a2664e7491
@ -1058,12 +1058,12 @@ opal_setup_lockingrange(struct dev *iter)
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf("range length:\n");
|
printf("range length:\n");
|
||||||
if (!scanf("%ld", &range_length)) {
|
if (!scanf("%" SCNu64, &range_length)) {
|
||||||
printf("Invalid range length\n");
|
printf("Invalid range length\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("range start:\n");
|
printf("range start:\n");
|
||||||
if (!scanf("%ld", &range_start)) {
|
if (!scanf("%" SCNu64, &range_start)) {
|
||||||
printf("Invalid range start address\n");
|
printf("Invalid range start address\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user