Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2019 23:48:57 +0000 (UTC)
From:      Enji Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343368 - head/lib/libc/tests/sys
Message-ID:  <201901232348.x0NNmvO5098255@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Wed Jan 23 23:48:57 2019
New Revision: 343368
URL: https://svnweb.freebsd.org/changeset/base/343368

Log:
  Fix up r343367
  
  I should have only changed the format qualifier with the `size_t` value,
  `length`, not the other [`off_t`] value, `dest_file_size`.
  
  MFC after:	1 month
  MFC with:	r343362, r343365, r343367
  Approved by:	emaste (mentor; implicit)
  Reported by:	gcc 8.x

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:30:55 2019	(r343367)
+++ head/lib/libc/tests/sys/sendfile_test.c	Wed Jan 23 23:48:57 2019	(r343368)
@@ -289,7 +289,7 @@ 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 (%zu) doesn't match the "
+	    "number of bytes written out to %s (%ju) doesn't match the "
 	    "expected number of bytes (%zu)", dest_filename, dest_file_size,
 	    length);
 



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