diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-26 14:22:58 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-29 21:19:58 +0300 |
commit | e15b521f764216b598d5c510c8a76a643a1bf901 (patch) | |
tree | 3548edd38d651dfaef95a58a7d47f6ffc0e7b6dd /tests/fs-tests/integrity | |
parent | 0b50cbea1801172d2f035b82d5b4f06a23dbd146 (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')
-rw-r--r-- | tests/fs-tests/integrity/integck.c | 3 |
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) |