2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-27 12:28:14 +00:00

zdtm: print string describing error number

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin 2012-11-02 17:43:59 +04:00 committed by Pavel Emelyanov
parent a943071e44
commit c80b08643f

View File

@ -87,10 +87,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", \