Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2018 18:07:31 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330742 - head/libexec/tftpd/tests
Message-ID:  <201803101807.w2AI7Vt4073968@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Sat Mar 10 18:07:31 2018
New Revision: 330742
URL: https://svnweb.freebsd.org/changeset/base/330742

Log:
  tftpd: fix the build of tests on i386 after 330696
  
  It's those darn printf format specifiers again
  
  Reported by:	cy, kibab
  MFC after:	20 days
  X-MFC-With:	330696

Modified:
  head/libexec/tftpd/tests/functional.c

Modified: head/libexec/tftpd/tests/functional.c
==============================================================================
--- head/libexec/tftpd/tests/functional.c	Sat Mar 10 14:33:00 2018	(r330741)
+++ head/libexec/tftpd/tests/functional.c	Sat Mar 10 18:07:31 2018	(r330742)
@@ -248,10 +248,10 @@ require_bufeq(const char *expected, ssize_t expected_l
 	ssize_t i;
 
 	ATF_REQUIRE_EQ_MSG(expected_len, len,
-	    "Expected %ld bytes but got %ld", expected_len, len);
+	    "Expected %zd bytes but got %zd", expected_len, len);
 	for (i = 0; i < len; i++) {
 		ATF_REQUIRE_EQ_MSG(actual[i], expected[i],
-		    "Expected %#hhx at position %ld; got %hhx instead",
+		    "Expected %#hhx at position %zd; got %hhx instead",
 		    expected[i], i, actual[i]);
 	}
 }



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