From ee2e68af86b985b63ca2fc37b96ff25eb3a1fbff Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 12 Sep 2020 17:23:51 +0000 Subject: [PATCH] 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. --- tools/regression/geom/MdLoad/Makefile | 1 + tools/regression/geom/MdLoad/MdLoad.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/regression/geom/MdLoad/Makefile b/tools/regression/geom/MdLoad/Makefile index 4804f975938..61637b85d4b 100644 --- a/tools/regression/geom/MdLoad/Makefile +++ b/tools/regression/geom/MdLoad/Makefile @@ -2,6 +2,7 @@ PROG= MdLoad LIBADD= sbuf bsdxml +NO_OBJ= t MAN= diff --git a/tools/regression/geom/MdLoad/MdLoad.c b/tools/regression/geom/MdLoad/MdLoad.c index 33ee4de3876..c2e5a8af66f 100644 --- a/tools/regression/geom/MdLoad/MdLoad.c +++ b/tools/regression/geom/MdLoad/MdLoad.c @@ -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);