svn commit: r366511 - head/sbin/nvmecontrol/modules/wdc
Warner Losh
imp at FreeBSD.org
Wed Oct 7 07:55:56 UTC 2020
Author: imp
Date: Wed Oct 7 07:55:55 2020
New Revision: 366511
URL: https://svnweb.freebsd.org/changeset/base/366511
Log:
Use intmax_t to print uint64_t values.
This fixes the 32-bit build where the types are different.
Modified:
head/sbin/nvmecontrol/modules/wdc/wdc.c
Modified: head/sbin/nvmecontrol/modules/wdc/wdc.c
==============================================================================
--- head/sbin/nvmecontrol/modules/wdc/wdc.c Wed Oct 7 07:55:55 2020 (r366510)
+++ head/sbin/nvmecontrol/modules/wdc/wdc.c Wed Oct 7 07:55:55 2020 (r366511)
@@ -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)
More information about the svn-src-all
mailing list