diff options
| -rw-r--r-- | include/ext4_debug.h | 5 | ||||
| -rw-r--r-- | src/ext4_debug.c | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/ext4_debug.h b/include/ext4_debug.h index 2afc39c..6eb8aa1 100644 --- a/include/ext4_debug.h +++ b/include/ext4_debug.h @@ -49,7 +49,6 @@ extern "C" { #endif #include <stdint.h> -#include <stdio.h> #include <inttypes.h> #ifndef PRIu64 @@ -143,6 +142,8 @@ void ext4_dmask_clr(uint32_t m); uint32_t ext4_dmask_get(void); #if CONFIG_DEBUG_PRINTF +#include <stdio.h> + /**@brief Debug printf.*/ #define ext4_dbg(m, ...) \ do { \ @@ -162,6 +163,8 @@ uint32_t ext4_dmask_get(void); #if CONFIG_DEBUG_ASSERT /**@brief Debug assertion.*/ #if CONFIG_HAVE_OWN_ASSERT +#include <stdio.h> + #define ext4_assert(_v) \ do { \ if (!(_v)) { \ diff --git a/src/ext4_debug.c b/src/ext4_debug.c index 40f5fe6..09ab2bd 100644 --- a/src/ext4_debug.c +++ b/src/ext4_debug.c @@ -41,7 +41,6 @@ #include "ext4_debug.h" #include <stdarg.h> -#include <stdio.h> static uint32_t debug_mask; |
