Commit 121d632c authored by Jim Harris's avatar Jim Harris
Browse files

nvme_manage: use SCNu64 for uint64_t input



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

Reviewed-on: https://review.gerrithub.io/420794


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent a278b142
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;