Browse Source

core: print function name by default in LOGs

Andrei Pelinescu-Onciul 15 years ago
parent
commit
c3e19d2454
1 changed files with 3 additions and 0 deletions
  1. 3 0
      dprint.h

+ 3 - 0
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__ */