Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2025 09:11:34 GMT
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: aa0538b997cf - main - tcopy: Fix printf format for 32bit arm
Message-ID:  <202508130911.57D9BYfW089312@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by phk:

URL: https://cgit.FreeBSD.org/src/commit/?id=aa0538b997cf55c6f6722a2c38de3d031457e9c8

commit aa0538b997cf55c6f6722a2c38de3d031457e9c8
Author:     Poul-Henning Kamp <phk@FreeBSD.org>
AuthorDate: 2025-08-13 09:11:11 +0000
Commit:     Poul-Henning Kamp <phk@FreeBSD.org>
CommitDate: 2025-08-13 09:11:11 +0000

    tcopy: Fix printf format for 32bit arm
---
 usr.bin/tcopy/tcopy.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/tcopy/tcopy.cc b/usr.bin/tcopy/tcopy.cc
index 640344758402..62032740a788 100644
--- a/usr.bin/tcopy/tcopy.cc
+++ b/usr.bin/tcopy/tcopy.cc
@@ -387,7 +387,7 @@ file_set::file_mark(void)
 
 	int i = ftruncate(fd, where);
 	if (i < 0)
-		errx(17, "truncate error, %s to %zd", name, where);
+		errx(17, "truncate error, %s to %jd", name, (intmax_t)where);
 	assert(close(fd) >= 0);
 	fd = -1;
 }



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