diff options
author | Luke Shumaker <lukeshu@beefcake.parabola.nu> | 2018-05-26 00:50:56 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@beefcake.parabola.nu> | 2018-05-26 00:50:56 -0400 |
commit | 43b27dcc6a181cf5e668eb302c960e9c034554ce (patch) | |
tree | d7c82eaeb98b046ecba7c14d6f2c7984e26812b3 | |
parent | 6ae34ffb59a05c0098273d8d18e2986a6e43cbf4 (diff) |
dedupe-range: show dst index when on "open dst" errors
-rw-r--r-- | lib/dedupe-range.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dedupe-range.c b/lib/dedupe-range.c index c67b62c..b102b8f 100644 --- a/lib/dedupe-range.c +++ b/lib/dedupe-range.c @@ -37,7 +37,7 @@ void dedupe_range(uint64_t src_length, struct filepos src, struct filepos *dsts) for (size_t i = 0; i < dst_count; i++) { int dst_fd = open(dsts[i].filename, dsts[i].flags); if (dst_fd < 0) - error(EXIT_FAILURE, errno, "open dst: %s", dsts[i].filename); + error(EXIT_FAILURE, errno, "open dst[%zu]: %s", i, dsts[i].filename); range_info[i].dest_fd = dst_fd; range_info[i].dest_offset = dsts[i].offset; } |