From: muhammad.ahmad@seagate.com Date: Mon, 11 Jun 2018 18:06:47 +0000 (-0500) Subject: Making gcc compiler (5.4.0 among others) happy X-Git-Tag: v1.6~19^2^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=11f0331a27ee3b35ef8c8c0ca11e30d9c1ea440e;p=users%2Fsagi%2Fnvme-cli.git Making gcc compiler (5.4.0 among others) happy --- diff --git a/nvme-print.c b/nvme-print.c index 3f679d23..26539b48 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -1279,7 +1279,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",