summaryrefslogtreecommitdiff
path: root/tests/fs-tests/integrity/integck.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-26 14:22:58 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-29 21:19:58 +0300
commite15b521f764216b598d5c510c8a76a643a1bf901 (patch)
tree3548edd38d651dfaef95a58a7d47f6ffc0e7b6dd /tests/fs-tests/integrity/integck.c
parent0b50cbea1801172d2f035b82d5b4f06a23dbd146 (diff)
fs-tests: integck: print error number in pcv messages
In pcv() messages also print the error number - this is useful when an error happens and it is not because of EROFS. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
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)