summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <[email protected]>2023-02-19 09:16:30 +0100
committerChristophe Grenier <[email protected]>2023-02-19 09:16:30 +0100
commit6e7da4929b12ea9c5d93d9e77b244711d1f06c1a (patch)
tree223ec0d4b91c1ae6d4397342f438c3470d52728b
parent5ddaee9a478779bda9a5441b62340c2eb457a272 (diff)
qphotorec: improve error message when write failed
-rw-r--r--src/qpsearch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qpsearch.cpp b/src/qpsearch.cpp
index d7248e30..e8655f5f 100644
--- a/src/qpsearch.cpp
+++ b/src/qpsearch.cpp
@@ -151,7 +151,7 @@ pstatus_t QPhotorec::photorec_aux(alloc_data_t *list_search_space)
{
if(fwrite(buffer,blocksize,1,file_recovery.handle)<1)
{
- log_critical("Cannot write to file %s: %s\n", file_recovery.filename, strerror(errno));
+ log_critical("Cannot write to file %s after %llu bytes: %s\n", file_recovery.filename, (long long unsigned)file_recovery.file_size, strerror(errno));
if(errno==EFBIG)
{
/* File is too big for the destination filesystem */