[sr-dev] git:master: core: print function name by default in LOGs

Andrei Pelinescu-Onciul andrei at iptel.org
Sun Sep 26 15:05:23 CEST 2010


Module: sip-router
Branch: master
Commit: c3e19d24545e45e021000a53dc8b448cbe9442d3
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c3e19d24545e45e021000a53dc8b448cbe9442d3

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at 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__ */




More information about the sr-dev mailing list