summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/dedupe-range.c2
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;
}