Module: sip-router Branch: master Commit: c3e19d24545e45e021000a53dc8b448cbe9442d3 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c3e19d24...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Sun Sep 26 15:02:20 2010 +0200
core: print function name by default in LOGs
---
dprint.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dprint.h b/dprint.h index 8f50b1f..2da1243 100644 --- a/dprint.h +++ b/dprint.h @@ -41,6 +41,9 @@ /** if defined the function name will also be logged. */ #ifdef NO_LOG_FUNC_NAME # undef LOG_FUNC_NAME +#else +/* by default log the function name */ +# define LOG_FUNC_NAME #endif /* NO_LOG_FUNC_NAME */
/* C >= 99 has __func__, older gcc versions have __FUNCTION__ */