git: aa0538b997cf - main - tcopy: Fix printf format for 32bit arm
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Aug 2025 09:11:34 UTC
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;
}