瀏覽代碼

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__ */