From e15b521f764216b598d5c510c8a76a643a1bf901 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Tue, 26 Apr 2011 14:22:58 +0300 Subject: 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 --- tests/fs-tests/integrity/integck.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.3