Browse Source

Remove unnecessary stdio.h .

pull/11/head
ngkaho1234 9 years ago
parent
commit
1a75ade57c
  1. 5
      include/ext4_debug.h
  2. 1
      src/ext4_debug.c

5
include/ext4_debug.h

@ -49,7 +49,6 @@ extern "C" {
#endif #endif
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <inttypes.h> #include <inttypes.h>
#ifndef PRIu64 #ifndef PRIu64
@ -143,6 +142,8 @@ void ext4_dmask_clr(uint32_t m);
uint32_t ext4_dmask_get(void); uint32_t ext4_dmask_get(void);
#if CONFIG_DEBUG_PRINTF #if CONFIG_DEBUG_PRINTF
#include <stdio.h>
/**@brief Debug printf.*/ /**@brief Debug printf.*/
#define ext4_dbg(m, ...) \ #define ext4_dbg(m, ...) \
do { \ do { \
@ -162,6 +163,8 @@ uint32_t ext4_dmask_get(void);
#if CONFIG_DEBUG_ASSERT #if CONFIG_DEBUG_ASSERT
/**@brief Debug assertion.*/ /**@brief Debug assertion.*/
#if CONFIG_HAVE_OWN_ASSERT #if CONFIG_HAVE_OWN_ASSERT
#include <stdio.h>
#define ext4_assert(_v) \ #define ext4_assert(_v) \
do { \ do { \
if (!(_v)) { \ if (!(_v)) { \

1
src/ext4_debug.c

@ -41,7 +41,6 @@
#include "ext4_debug.h" #include "ext4_debug.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h>
static uint32_t debug_mask; static uint32_t debug_mask;

Loading…
Cancel
Save