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)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to