nvme_manage: use SCNu64 for uint64_t input

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I3e27c98a9dd72dce4fb333f04f8026392d1fcad3

Reviewed-on: https://review.gerrithub.io/420794
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Jim Harris 2018-07-30 09:19:34 -07:00
parent a278b14296
commit 121d632c02

View File

@ -568,14 +568,14 @@ add_ns(void)
}
printf("Please Input Namespace Size (in LBAs):\n");
if (!scanf("%" SCNi64, &ns_size)) {
if (!scanf("%" SCNu64, &ns_size)) {
printf("Invalid Namespace Size\n");
while (getchar() != '\n');
return;
}
printf("Please Input Namespace Capacity (in LBAs):\n");
if (!scanf("%" SCNi64, &ns_capacity)) {
if (!scanf("%" SCNu64, &ns_capacity)) {
printf("Invalid Namespace Capacity\n");
while (getchar() != '\n');
return;