svn commit: r343367 - head/lib/libc/tests/sys
Enji Cooper
ngie at FreeBSD.org
Wed Jan 23 23:30:56 UTC 2019
Author: ngie
Date: Wed Jan 23 23:30:55 2019
New Revision: 343367
URL: https://svnweb.freebsd.org/changeset/base/343367
Log:
Unbreak the build on architectures where size_t isn't synonymous with uintmax_t
I should have used `%zu` instead of `%ju` with `size_t` types.
MFC after: 1 month
MFC with: r343362, r343365
Approved by: emaste (mentor; implicit)
Reviewed by: asomers
Pointyhat to: ngie
Submitted by: asomers
Differential Revision: https://reviews.freebsd.org/D18935
Modified:
head/lib/libc/tests/sys/sendfile_test.c
Modified: head/lib/libc/tests/sys/sendfile_test.c
==============================================================================
--- head/lib/libc/tests/sys/sendfile_test.c Wed Jan 23 23:25:42 2019 (r343366)
+++ head/lib/libc/tests/sys/sendfile_test.c Wed Jan 23 23:30:55 2019 (r343367)
@@ -289,8 +289,8 @@ verify_source_and_dest(const char* dest_filename, int
length = (nbytes == 0) ? (size_t)(src_file_size - offset) : nbytes;
ATF_REQUIRE_EQ_MSG(dest_file_size, length,
- "number of bytes written out to %s (%ju) doesn't match the "
- "expected number of bytes (%ju)", dest_filename, dest_file_size,
+ "number of bytes written out to %s (%zu) doesn't match the "
+ "expected number of bytes (%zu)", dest_filename, dest_file_size,
length);
ATF_REQUIRE_EQ_MSG(0, lseek(src_fd, offset, SEEK_SET),
More information about the svn-src-all
mailing list