Skip to contentSkip to conversation

nvme-cli: fix compilation error

PATCH New Chaitanya Kulkarni 2 participants 2 messages Jun 11, 2018 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 nvme-cli: fix compilation error

Signed-off-by Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>

---
Changes since V1:-
1. Use typecast instead of changing the format specifier.

---
 nvme-print.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
nvme-print.c +1 -1
index b73a006..cdaf1cb 100644
@@ -1338,7 +1338,7 @@ void show_self_test_log(struct nvme_self_test_log *self_test, const char *devnam
 		temp = self_test->result[i].valid_diagnostic_info;
 		printf("  Valid Diagnostic Information : %#x\n", temp);
 		printf("  Power on hours (POH)         : %#"PRIx64"\n",
-			le64_to_cpu(self_test->result[i].power_on_hours));
+			(uint64_t)le64_to_cpu(self_test->result[i].power_on_hours));
 
 		if (temp & NVME_SELF_TEST_VALID_NSID)
 			printf("  Namespace Identifier         : %#x\n",
Signature · 1 line
2.17.0
Applied
#1 lore raw

PATCH v2 1/1 nvme-cli: fix compilation error

Applied, thank you!