svn commit: r365663 - head/tools/regression/geom/MdLoad

Warner Losh imp at FreeBSD.org
Sat Sep 12 17:23:52 UTC 2020


Author: imp
Date: Sat Sep 12 17:23:51 2020
New Revision: 365663
URL: https://svnweb.freebsd.org/changeset/base/365663

Log:
  Make this compile again by fixing err args to have formats
  
  Also, add NO_OBJ=t top the Makefie, since the test-harnest expects to
  run it in place.

Modified:
  head/tools/regression/geom/MdLoad/Makefile
  head/tools/regression/geom/MdLoad/MdLoad.c

Modified: head/tools/regression/geom/MdLoad/Makefile
==============================================================================
--- head/tools/regression/geom/MdLoad/Makefile	Sat Sep 12 16:50:04 2020	(r365662)
+++ head/tools/regression/geom/MdLoad/Makefile	Sat Sep 12 17:23:51 2020	(r365663)
@@ -2,6 +2,7 @@
 
 PROG=	MdLoad
 LIBADD=	sbuf bsdxml
+NO_OBJ=	t
 
 MAN=
 

Modified: head/tools/regression/geom/MdLoad/MdLoad.c
==============================================================================
--- head/tools/regression/geom/MdLoad/MdLoad.c	Sat Sep 12 16:50:04 2020	(r365662)
+++ head/tools/regression/geom/MdLoad/MdLoad.c	Sat Sep 12 17:23:51 2020	(r365663)
@@ -216,7 +216,7 @@ g_simdisk_xml_load(const char *file)
 
 	fd = open(file, O_RDONLY);
 	if (fd < 0)
-		err(1, file);
+		err(1, "%s", file);
 	fstat(fd, &st);
 	p = mmap(NULL, st.st_size, PROT_READ, MAP_NOCORE|MAP_PRIVATE, fd, 0);
 	i = XML_Parse(parser, p, st.st_size, 1);


More information about the svn-src-head mailing list