]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
micron printf for 64-bit on 32-bit archs
authorKeith Busch <kbusch@kernel.org>
Thu, 1 Apr 2021 23:27:36 +0000 (08:27 +0900)
committerKeith Busch <kbusch@kernel.org>
Thu, 1 Apr 2021 23:27:36 +0000 (08:27 +0900)
Signed-off-by: Keith Busch <kbusch@kernel.org>
plugins/micron/micron-nvme.c

index 68d7d8a347987c4cac4e81939acd24e0ba250f4f..f76c0156fc975c3b3c2d77dc27bd43338f29027c 100644 (file)
@@ -1772,7 +1772,7 @@ static int display_fw_activate_entry (
     hours = timestamp / 3600;
     minutes = (timestamp % 3600) / 60;
     seconds = (timestamp % 3600) % 60;
-    sprintf(ptr, "|%"PRIu64":%hhu:%hhu", hours, minutes, seconds);
+    sprintf(ptr, "|%"PRIu64":%hhu:%hhu", (uint64_t)hours, minutes, seconds);
     ptr += 12;
 
     sprintf(ptr, "| %"PRIu64, le64_to_cpu(entry->power_cycle_count));