aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-08-30 13:57:39 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-08-30 13:57:39 +0200
commit4557b1bbfa0194eaa0fe1acc36475717288fdc69 (patch)
tree544833c68cf9b9d73a4a1242996ee2eb5f1fb496
parent22bc45b8bfb8d0f2d8a46c6e945f3b4388fdced0 (diff)
hack to log function namesneels/log_functions
-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 86a6977..8abf8b7 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)