Explorar o código

Added trace statements through LFS_YES_TRACE

xieyangrun %!s(int64=6) %!d(string=hai) anos
pai
achega
45a5a38642
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      lfs_config.h

+ 7 - 0
lfs_config.h

@@ -14,6 +14,13 @@
 // code footprint
 
 // Logging functions
+#ifdef LFS_YES_TRACE
+#define LFS_TRACE(fmt, ...) \
+    rt_kprintf("lfs_trace:%d: " fmt "\n", __LINE__, __VA_ARGS__)
+#else
+#define LFS_TRACE(fmt, ...)
+#endif
+
 #ifndef LFS_NO_DEBUG
 #define LFS_DEBUG(fmt, ...) \
     rt_kprintf("lfs debug:%d: " fmt "\n", __LINE__, __VA_ARGS__)