Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 2015 18:45:04 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r290868 - head/lib/libc/tests/net
Message-ID:  <201511151845.tAFIj4ub056579@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



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