projects
/
lwext4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed nasty tabs.
[lwext4.git]
/
lwext4
/
ext4_debug.h
diff --git
a/lwext4/ext4_debug.h
b/lwext4/ext4_debug.h
index a79cadf83154a0c0af4974642c3476b6d382485e..c82579b7e3715e1a83522297a4b13b5ed4d82511 100644
(file)
--- a/
lwext4/ext4_debug.h
+++ b/
lwext4/ext4_debug.h
@@
-43,67
+43,67
@@
#include <stdio.h>
/**@brief Debug mask: ext4_blockdev.c*/
#include <stdio.h>
/**@brief Debug mask: ext4_blockdev.c*/
-#define EXT4_DEBUG_BLOCKDEV
(1 << 0)
+#define EXT4_DEBUG_BLOCKDEV (1 << 0)
/**@brief Debug mask: ext4_fs.c*/
/**@brief Debug mask: ext4_fs.c*/
-#define EXT4_DEBUG_FS
(1 << 1)
+#define EXT4_DEBUG_FS (1 << 1)
/**@brief Debug mask: ext4_balloc.c*/
/**@brief Debug mask: ext4_balloc.c*/
-#define EXT4_DEBUG_BALLOC
(1 << 2)
+#define EXT4_DEBUG_BALLOC (1 << 2)
/**@brief Debug mask: ext4_bitmap.c*/
/**@brief Debug mask: ext4_bitmap.c*/
-#define EXT4_DEBUG_BITMAP
(1 << 3)
+#define EXT4_DEBUG_BITMAP (1 << 3)
/**@brief Debug mask: ext4_dir_idx.c*/
/**@brief Debug mask: ext4_dir_idx.c*/
-#define EXT4_DEBUG_DIR_IDX
(1 << 4)
+#define EXT4_DEBUG_DIR_IDX (1 << 4)
/**@brief Debug mask: ext4_dir.c*/
/**@brief Debug mask: ext4_dir.c*/
-#define EXT4_DEBUG_DIR
(1 << 5)
+#define EXT4_DEBUG_DIR (1 << 5)
/**@brief Debug mask: ext4_ialloc.c*/
/**@brief Debug mask: ext4_ialloc.c*/
-#define EXT4_DEBUG_IALLOC
(1 << 6)
+#define EXT4_DEBUG_IALLOC (1 << 6)
/**@brief Debug mask: ext4_inode.c*/
/**@brief Debug mask: ext4_inode.c*/
-#define EXT4_DEBUG_INODE
(1 << 7)
+#define EXT4_DEBUG_INODE (1 << 7)
/**@brief Debug mask: ext4_super.c*/
/**@brief Debug mask: ext4_super.c*/
-#define EXT4_DEBUG_SUPER
(1 << 8)
+#define EXT4_DEBUG_SUPER (1 << 8)
/**@brief Debug mask: ext4_bcache.c*/
/**@brief Debug mask: ext4_bcache.c*/
-#define EXT4_DEBUG_BCACHE
(1 << 9)
+#define EXT4_DEBUG_BCACHE (1 << 9)
/**@brief Debug mask: ext4_extents.c*/
#define EXT4_DEBUG_EXTENTS (1 << 10)
/**@brief Debug mask: ext4_extents.c*/
#define EXT4_DEBUG_EXTENTS (1 << 10)
-/**@brief
All debug printf enabled.*/
-#define EXT4_DEBUG_ALL
(0xFFFFFFFF)
+/**@brief All debug printf enabled.*/
+#define EXT4_DEBUG_ALL (0xFFFFFFFF)
-/**@brief
Global mask debug settings.
- * @brief
m new debug mask.*/
+/**@brief Global mask debug settings.
+ * @brief m new debug mask.*/
void ext4_dmask_set(uint32_t m);
void ext4_dmask_set(uint32_t m);
-/**@brief
Global debug mask get.
- * @return
debug mask*/
+/**@brief Global debug mask get.
+ * @return debug mask*/
uint32_t ext4_dmask_get(void);
#if CONFIG_DEBUG_PRINTF
uint32_t ext4_dmask_get(void);
#if CONFIG_DEBUG_PRINTF
-/**@brief
Debug printf.*/
-#define ext4_dprintf(m, ...) do { \
+/**@brief Debug printf.*/
+#define ext4_dprintf(m, ...)
do { \
(m & ext4_dmask_get()) ? printf(__VA_ARGS__) : (void)0; \
fflush(stdout); \
}while(0)
#else
(m & ext4_dmask_get()) ? printf(__VA_ARGS__) : (void)0; \
fflush(stdout); \
}while(0)
#else
-#define
ext4_dprintf(m, ...)
+#define ext4_dprintf(m, ...)
#endif
#if CONFIG_DEBUG_ASSERT
/**@brief Debug asseration.*/
#endif
#if CONFIG_DEBUG_ASSERT
/**@brief Debug asseration.*/
-#define ext4_assert(_v)
do { \
+#define ext4_assert(_v) do { \
if(!(_v)){ \
printf("Assertion failed:\nmodule: %s\nfunc: %s\nline: %d\n", \
__FILE__, __FUNCTION__, __LINE__); \
if(!(_v)){ \
printf("Assertion failed:\nmodule: %s\nfunc: %s\nline: %d\n", \
__FILE__, __FUNCTION__, __LINE__); \