ext4_journal: handle EXT4_FINCOM_RECOVER flag properly.
[lwext4.git] / lwext4 / ext4_debug.c
index 7e38f4d1cbfbeb448582abd0ec6d6d07003e4d8d..b38593b48f0e6e99acd9e3af4ce2f0fdcca83d6d 100644 (file)
  * @brief Debug printf and assert macros.
  */
 
-#include <ext4_config.h>
-#include <ext4_debug.h>
+#include "ext4_config.h"
+#include "ext4_debug.h"
 
 #include <stdarg.h>
 #include <stdio.h>
 
-static uint32_t __dbg_mask__;
-
+static uint32_t debug_mask;
 
 void ext4_dmask_set(uint32_t m)
 {
-    __dbg_mask__ = m;
+       debug_mask |= m;
+}
+
+void ext4_dmask_clr(uint32_t m)
+{
+       debug_mask &= ~m;
 }
 
 uint32_t ext4_dmask_get(void)
 {
-    return __dbg_mask__;
+       return debug_mask;
 }
 
+
+
 /**
  * @}
  */