From 47166b41e05090c595de633c67dfe8ae4cb19bc0 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 17 Apr 2024 10:12:12 +0530 Subject: c: rename error reporting marcos --- include/util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/util.h b/include/util.h index ca4e6d8..2f1c341 100644 --- a/include/util.h +++ b/include/util.h @@ -1,10 +1,10 @@ #include -#define err_print(fmt, ...) \ +#define print_err(fmt, ...) \ fprintf(stderr, "[%s:%d] " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__) -#define err_ret(r, fmt, ...) \ +#define return_err(r, fmt, ...) \ do { \ - err_print(fmt, ##__VA_ARGS__); \ + print_err(fmt, ##__VA_ARGS__); \ return r; \ } while (0) -- cgit v1.2.3