From: Keith Busch Date: Thu, 21 Jun 2018 14:46:27 +0000 (-0600) Subject: Fix format specifier for 32-bit X-Git-Tag: v1.6~17 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b6231963f38e8b7d2c8fa31f2dd68037be832405;p=users%2Fsagi%2Fnvme-cli.git Fix format specifier for 32-bit Link: https://github.com/linux-nvme/nvme-cli/issues/377 Signed-off-by: Keith Busch --- diff --git a/nvme-print.c b/nvme-print.c index 8699d6cc..4e7cb9fa 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -1639,7 +1639,7 @@ static void show_auto_pst(struct nvme_auto_pst *apst) static void show_timestamp(struct nvme_timestamp *ts) { - printf("\tThe timestamp is : %lu\n", int48_to_long(ts->timestamp)); + printf("\tThe timestamp is : %"PRIu64"\n", int48_to_long(ts->timestamp)); printf("\t%s\n", (ts->attr & 2) ? "The Timestamp field was initialized with a "\ "Timestamp value using a Set Features command." : "The Timestamp field was initialized "\ "to ‘0’ by a Controller Level Reset.");