hack to log function names

Change-Id: I25047a82d9ba83b86af80ed8668a3bd59ecbba96
This commit is contained in:
Neels Hofmeyr 2017-08-30 13:57:39 +02:00
parent 22bc45b8bf
commit 4557b1bbfa
1 changed files with 2 additions and 2 deletions

View File

@ -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)