summaryrefslogtreecommitdiff
path: root/src/common/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/log.h')
-rw-r--r--src/common/log.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/log.h b/src/common/log.h
index 5f54ba7033..d8311d20fb 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -13,10 +13,13 @@
void log(int severity, const char *format, ...);
#ifdef __GNUC__
-#define log_fn(severity, format, args...) \
+#define log_fn(severity, format) \
+ log((severity), "%s(): " format , __PRETTY_FUNCTION__)
+#define log_fnf(severity, format, args...) \
log((severity), "%s(): " format , __PRETTY_FUNCTION__ , ##args)
#else
#define log_fn log
+#define log_fnf log
#endif
# define __LOG_H