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.
This commit is contained in:
Warner Losh 2020-09-12 17:23:51 +00:00
parent 3303e9bc22
commit ee2e68af86
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365663
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@
PROG= MdLoad
LIBADD= sbuf bsdxml
NO_OBJ= t
MAN=

View file

@ -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);