svn commit: r312164 - head/tests/sys/mac/bsdextended

Ngie Cooper ngie at FreeBSD.org
Sat Jan 14 10:38:41 UTC 2017


Author: ngie
Date: Sat Jan 14 10:38:39 2017
New Revision: 312164
URL: https://svnweb.freebsd.org/changeset/base/312164

Log:
  Fix -Wformat issue
  
  Use %zu for printing out results from nitems, as it's size_t based
  
  MFC after:	1 week
  X-MFC with:	r312120
  Reported by:	gcc (mips:mipsel tinderbox)
  Sponsored by:	Dell EMC Isilon

Modified:
  head/tests/sys/mac/bsdextended/ugidfw_test.c

Modified: head/tests/sys/mac/bsdextended/ugidfw_test.c
==============================================================================
--- head/tests/sys/mac/bsdextended/ugidfw_test.c	Sat Jan 14 10:23:05 2017	(r312163)
+++ head/tests/sys/mac/bsdextended/ugidfw_test.c	Sat Jan 14 10:38:39 2017	(r312164)
@@ -222,7 +222,7 @@ main(void)
 		return (0);
 	}
 
-	printf("1..%lu\n", nitems(test_users) + nitems(test_groups) +
+	printf("1..%zu\n", nitems(test_users) + nitems(test_groups) +
 	    3 * nitems(test_strings) + 2);
 
 	test_libugidfw_strings();


More information about the svn-src-head mailing list