aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/osmocom/core/logging.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index 86a6977f..8abf8b70 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -74,9 +74,9 @@ void logp(int subsys, const char *file, int line, int cont, const char *format,
do { \
if (log_check_level(ss, level)) {\
if (caller_file) \
- logp2(ss, level, caller_file, caller_line, 0, fmt, ##args); \
+ logp2(ss, level, caller_file, caller_line, 0, "%s() " fmt, __func__, ##args); \
else \
- logp2(ss, level, __BASE_FILE__, __LINE__, 0, fmt, ##args); \
+ logp2(ss, level, __BASE_FILE__, __LINE__, 0, "%s() " fmt, __func__, ##args); \
}\
} while(0)