summaryrefslogtreecommitdiff
path: root/tests/fs-tests/integrity/integck.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fs-tests/integrity/integck.c')
-rw-r--r--tests/fs-tests/integrity/integck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 5afc1e9..ac72c5b 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -71,7 +71,8 @@
#define pcv(fmt, ...) do { \
if (!args.power_cut_mode || (args.power_cut_mode && args.verbose)) \
- normsg(fmt " (line %d)", ##__VA_ARGS__, __LINE__); \
+ normsg(fmt " (line %d, error %d (%s))", \
+ ##__VA_ARGS__, __LINE__, errno, strerror(errno)); \
if (!args.power_cut_mode) \
CHECK(0); \
} while(0)