Use intmax_t to print uint64_t values.

This fixes the 32-bit build where the types are different.
This commit is contained in:
Warner Losh 2020-10-07 07:55:55 +00:00
parent 85a6f8076f
commit edad03308b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366511

View File

@ -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)