[CRIU] [PATCH] zdtm: print string describing error number
Andrey Vagin
avagin at openvz.org
Fri Nov 2 08:21:19 EDT 2012
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
test/zdtm/lib/zdtmtst.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/zdtm/lib/zdtmtst.h b/test/zdtm/lib/zdtmtst.h
index 11b22a0..6a21569 100644
--- a/test/zdtm/lib/zdtmtst.h
+++ b/test/zdtm/lib/zdtmtst.h
@@ -91,10 +91,10 @@ extern int parse_opt_string(char *param, void *arg);
extern void setup_outfile(void);
extern int test_log_init(const char *outfile, const char *suffix);
#define err(format, arg...) \
- test_msg("ERR: %s:%d: " format " (errno = %d)\n", \
+ test_msg("ERR: %s:%d: " format " (errno = %d (%m))\n", \
__FILE__, __LINE__, ## arg, errno)
#define fail(format, arg...) \
- test_msg("FAIL: %s:%d: " format " (errno = %d)\n", \
+ test_msg("FAIL: %s:%d: " format " (errno = %d (%m))\n", \
__FILE__, __LINE__, ## arg, errno)
#define skip(format, arg...) \
test_msg("SKIP: %s:%d: " format "\n", \
--
1.7.11.7
More information about the CRIU
mailing list