svn commit: r290868 - head/lib/libc/tests/net
Garrett Cooper
ngie at FreeBSD.org
Sun Nov 15 18:45:05 UTC 2015
Author: ngie
Date: Sun Nov 15 18:45:04 2015
New Revision: 290868
URL: https://svnweb.freebsd.org/changeset/base/290868
Log:
Fix -Wformat issues
X-MFC with: r290563
MFC after: 1 week
Reported by: gcc
Sponsored by: EMC / Isilon Storage Division
Modified:
head/lib/libc/tests/net/ether_test.c
Modified: head/lib/libc/tests/net/ether_test.c
==============================================================================
--- head/lib/libc/tests/net/ether_test.c Sun Nov 15 16:02:22 2015 (r290867)
+++ head/lib/libc/tests/net/ether_test.c Sun Nov 15 18:45:04 2015 (r290868)
@@ -65,7 +65,7 @@ ATF_TC_BODY(ether_line_bad_1, tc)
char hostname[256];
ATF_REQUIRE_MSG(ether_line(ether_line_bad_1_string, &e, hostname) != 0,
- "ether_line succeeded unexpectedly", errno);
+ "ether_line succeeded unexpectedly; errno=%d", errno);
}
static const char *ether_line_bad_2_string = "x x";
@@ -77,7 +77,7 @@ ATF_TC_BODY(ether_line_bad_2, tc)
char hostname[256];
ATF_REQUIRE_MSG(ether_line(ether_line_bad_2_string, &e, hostname) != 0,
- "ether_line succeeded unexpectedly", errno);
+ "ether_line succeeded unexpectedly; errno=%d", errno);
}
static const char *ether_aton_string = "01:23:45:67:89:ab";
@@ -92,7 +92,7 @@ ATF_TC_BODY(ether_aton_r, tc)
ep = ether_aton_r(ether_aton_string, &e);
- ATF_REQUIRE_MSG(ep != NULL, "ether_aton_r failed", errno);
+ ATF_REQUIRE_MSG(ep != NULL, "ether_aton_r failed; errno=%d", errno);
ATF_REQUIRE_MSG(ep == &e,
"ether_aton_r returned different pointers; %p != %p", ep, &e);
}
More information about the svn-src-head
mailing list