Index: head/usr.sbin/bhyve/block_if.c =================================================================== --- head/usr.sbin/bhyve/block_if.c +++ head/usr.sbin/bhyve/block_if.c @@ -37,6 +37,7 @@ #include #include +#include #include #include #include @@ -447,12 +448,12 @@ } if (fd < 0) { - perror("Could not open backing file"); + warn("Could not open backing file: %s", nopt); goto err; } if (fstat(fd, &sbuf) < 0) { - perror("Could not stat backing file"); + warn("Could not stat backing file %s", nopt); goto err; }