From edad03308bfa88f9923f47132f8080fad6344098 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 7 Oct 2020 07:55:55 +0000 Subject: [PATCH] Use intmax_t to print uint64_t values. This fixes the 32-bit build where the types are different. --- sbin/nvmecontrol/modules/wdc/wdc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/nvmecontrol/modules/wdc/wdc.c b/sbin/nvmecontrol/modules/wdc/wdc.c index e607b365d71..7b5ea03cbd0 100644 --- a/sbin/nvmecontrol/modules/wdc/wdc.c +++ b/sbin/nvmecontrol/modules/wdc/wdc.c @@ -342,8 +342,8 @@ wdc_do_dump_dui(int fd, char *tmpl, uint8_t data_area, if (first) { hdr_ver = ((buf[len_off] & 0xF) != 0) ? (buf[len_off]) : (le16dec(buf + len_off)); - printf("Dumping %ld bytes of version %d log to %s\n", log_len, - hdr_ver, tmpl); + printf("Dumping %jd bytes of version %d log to %s\n", + (uintmax_t)log_len, hdr_ver, tmpl); first = 0; } if (write(fd2, buf, resid) != (ssize_t)resid) -- 2.45.0