Author: arichardson Date: Mon Aug 24 09:20:27 2020 New Revision: 364648 URL: https://svnweb.freebsd.org/changeset/base/364648
Log: 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 Modified: head/usr.sbin/makefs/msdos/msdosfs_vnops.c Modified: head/usr.sbin/makefs/msdos/msdosfs_vnops.c ============================================================================== --- head/usr.sbin/makefs/msdos/msdosfs_vnops.c Mon Aug 24 09:20:23 2020 (r364647) +++ head/usr.sbin/makefs/msdos/msdosfs_vnops.c Mon Aug 24 09:20:27 2020 (r364648) @@ -467,15 +467,15 @@ msdosfs_wfile(const char *path, struct denode *dep, fs 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; } _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
