소스 검색

core: print function name by default in LOGs

Andrei Pelinescu-Onciul 15 년 전
부모
커밋
c3e19d2454
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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__ */