ref: 1a75ade57c50a58d8d6797f41cc0d9bf8edb4c47
parent: 7a2fbb4fdb0fbbe196d6d936dee74e65c25909ab
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Wed Feb 3 05:29:28 EST 2016
Remove unnecessary stdio.h .
--- a/include/ext4_debug.h
+++ b/include/ext4_debug.h
@@ -49,7 +49,6 @@
#endif
#include <stdint.h>
-#include <stdio.h>
#include <inttypes.h>
#ifndef PRIu64
@@ -143,6 +142,8 @@
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 @@
#if CONFIG_DEBUG_ASSERT
/**@brief Debug assertion.*/
#if CONFIG_HAVE_OWN_ASSERT
+#include <stdio.h>
+
#define ext4_assert(_v) \
do { \
if (!(_v)) { \
--- 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;