main: Avoid fprintf(%m), for BSD builds
commit9d4594ab553210c30c4e9b6dd2d221d8f66bb17f
authorEric Blake <eblake@redhat.com>
Thu, 29 Nov 2018 15:36:27 +0000 (29 09:36 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 29 Nov 2018 17:53:59 +0000 (29 11:53 -0600)
tree334881da85df2c5e72124460f2f9a146b95d8014
parente7946f2739f09a7b881d2b3044aeb272883caa9c
main: Avoid fprintf(%m), for BSD builds

printf %m is a glibc extension; using it directly can cause
odd output on BSD. Most of our uses of %m are via nbdkit wrappers,
which will be fixed in the next patch; this was the only %m I
could find in a direct call to the printf family, so it doesn't
hurt to just open-code it.  This particular error is reached
early enough in the process that nbdkit_error() is not a viable
substitute.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/main.c