diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-08-30 13:57:39 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-08-30 13:57:39 +0200 |
commit | 4557b1bbfa0194eaa0fe1acc36475717288fdc69 (patch) | |
tree | 544833c68cf9b9d73a4a1242996ee2eb5f1fb496 | |
parent | 22bc45b8bfb8d0f2d8a46c6e945f3b4388fdced0 (diff) |
hack to log function namesneels/log_functions
Change-Id: I25047a82d9ba83b86af80ed8668a3bd59ecbba96
-rw-r--r-- | include/osmocom/core/logging.h | 4 |
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) |