summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-15 18:45:04 +0000
committerngie <ngie@FreeBSD.org>2015-11-15 18:45:04 +0000
commitde769acd4d34f24192df1210e9b5bc15a7cd48d0 (patch)
treeb8ea12356e97cf82c3b2f9144078d650052f5f6a /lib/libc
parent2bf2184989df811e449644003b7fb0f3b94a4f14 (diff)
downloadFreeBSD-src-de769acd4d34f24192df1210e9b5bc15a7cd48d0.zip
FreeBSD-src-de769acd4d34f24192df1210e9b5bc15a7cd48d0.tar.gz
Fix -Wformat issues
X-MFC with: r290563 MFC after: 1 week Reported by: gcc Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/tests/net/ether_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/tests/net/ether_test.c b/lib/libc/tests/net/ether_test.c
index a14ea61..fa8e484 100644
--- a/lib/libc/tests/net/ether_test.c
+++ b/lib/libc/tests/net/ether_test.c
@@ -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);
}
OpenPOWER on IntegriCloud