makefs (msdosfs): Use fprintf instead of debug print for errors
The added print was very helpful for debugging failed disk image creation. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D23200
This commit is contained in:
parent
50e525e40b
commit
06e20d1bab
@ -467,15 +467,15 @@ msdosfs_wfile(const char *path, struct denode *dep, fsnode *node)
|
||||
|
||||
if ((fd = open(path, O_RDONLY)) == -1) {
|
||||
error = errno;
|
||||
MSDOSFS_DPRINTF(("open %s: %s", path, strerror(error)));
|
||||
fprintf(stderr, "open %s: %s\n", path, strerror(error));
|
||||
return error;
|
||||
}
|
||||
|
||||
if ((dat = mmap(0, nsize, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0))
|
||||
== MAP_FAILED) {
|
||||
error = errno;
|
||||
MSDOSFS_DPRINTF(("%s: mmap %s: %s", __func__, node->name,
|
||||
strerror(error)));
|
||||
fprintf(stderr, "%s: mmap %s: %s\n", __func__, node->name,
|
||||
strerror(error));
|
||||
close(fd);
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user