From 70b31a48d92f9844f085126966370ffa6a8fd0f7 Mon Sep 17 00:00:00 2001 From: yrutschle Date: Mon, 27 Sep 2021 12:53:41 +0200 Subject: [PATCH] migrate generic system call failure checks to new log system --- common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.h b/common.h index acb1bd3..d3ebd59 100644 --- a/common.h +++ b/common.h @@ -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); \ }