Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Oct 2020 07:55:55 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366511 - head/sbin/nvmecontrol/modules/wdc
Message-ID:  <202010070755.0977ttxU089741@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010070755.0977ttxU089741>