migrate generic system call failure checks to new log system

This commit is contained in:
yrutschle 2021-09-27 12:53:41 +02:00
parent 66caf8a31b
commit 70b31a48d9

View File

@ -40,7 +40,7 @@
#define CHECK_RES_DIE(res, str) \
if (res == -1) { \
fprintf(stderr, "%s:%d:", __FILE__, __LINE__); \
print_message(msg_system_error, "%s:%d:", __FILE__, __LINE__); \
perror(str); \
exit(1); \
}
@ -53,7 +53,7 @@
#define CHECK_ALLOC(a, str) \
if (!a) { \
fprintf(stderr, "%s:%d:", __FILE__, __LINE__); \
print_message(msg_system_error, "%s:%d:", __FILE__, __LINE__); \
perror(str); \
exit(1); \
}