From e20208a3731d1c98aa1ac5609dbb73ed5a5de46b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 28 Jun 2023 23:47:01 +0200 Subject: log: minor refactoring --- src/log.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/log.h b/src/log.h index 201ef5a..1fabe14 100644 --- a/src/log.h +++ b/src/log.h @@ -39,7 +39,7 @@ void log_entry_end(FILE *dest); log_entry_end(stdout); \ } while (0) -#define log_err_file_loc() \ +#define _log_err_file_loc() \ do { \ fprintf(stderr, "%s(%d): ", basename(__FILE__), __LINE__); \ } while (0) @@ -48,7 +48,7 @@ void log_entry_end(FILE *dest); do { \ if (!log_entry_start(LOG_LVL_ERR, stderr)) \ break; \ - log_err_file_loc(); \ + _log_err_file_loc(); \ fprintf(stderr, __VA_ARGS__); \ log_entry_end(stderr); \ } while (0) @@ -57,7 +57,7 @@ void log_entry_end(FILE *dest); do { \ if (!log_entry_start(LOG_LVL_ERR, stderr)) \ break; \ - log_err_file_loc(); \ + _log_err_file_loc(); \ perror(fn); \ log_entry_end(stderr); \ } while (0) -- cgit v1.2.3