From 4557b1bbfa0194eaa0fe1acc36475717288fdc69 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 30 Aug 2017 13:57:39 +0200 Subject: hack to log function names Change-Id: I25047a82d9ba83b86af80ed8668a3bd59ecbba96 --- include/osmocom/core/logging.h | 4 ++-- 1 file 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) -- cgit v1.2.3