Date: Sat, 14 Jan 2017 10:38:39 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r312164 - head/tests/sys/mac/bsdextended Message-ID: <201701141038.v0EAcdBT005625@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701141038.v0EAcdBT005625>