Message ID | 5102AD72.2050307@redhat.com (mailing list archive) |
---|---|
State | Under Review, archived |
Headers | show |
diff --git a/utils.c b/utils.c index 595850b..a5673f7 100644 --- a/utils.c +++ b/utils.c @@ -1237,7 +1237,8 @@ scan_again: fd = open(fullpath, O_RDONLY); if (fd < 0) { - fprintf(stderr, "failed to read %s\n", fullpath); + fprintf(stderr, "failed to open %s: %s\n", + fullpath, strerror(errno)); continue; } ret = btrfs_scan_one_device(fd, fullpath, &tmp_devices,