aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/log.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-28 23:47:01 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-28 23:47:01 +0200
commite20208a3731d1c98aa1ac5609dbb73ed5a5de46b (patch)
treecc8eb47bab3ac32df69659520abefbcc55f3cd03 /src/log.h
parentadd .pytest_cache to .gitignore (diff)
downloadcimple-e20208a3731d1c98aa1ac5609dbb73ed5a5de46b.tar.gz
cimple-e20208a3731d1c98aa1ac5609dbb73ed5a5de46b.zip
log: minor refactoring
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h6
1 files changed, 3 insertions, 3 deletions
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)