Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
---
 disk-io.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/disk-io.c b/disk-io.c
index 9e0cfe8..5986709 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -530,7 +530,8 @@ struct btrfs_root *open_ctree(const char *filename, u64 
sb_bytenr, int writes)
 
        fp = open(filename, flags, 0600);
        if (fp < 0) {
-               fprintf (stderr, "Could not open %s\n", filename);
+               fprintf (stderr, "Could not open %s: %s\n", filename,
+                        strerror (errno));
                return NULL;
        }
        root = open_ctree_fd(fp, filename, sb_bytenr, writes);
-- 
1.6.0.6

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to