From eef8e7b05ffab4c7d12a5f7e135357c0462c180c Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 30 Oct 2019 15:09:20 +0800 Subject: printf -> dbg_printf --- ext4_common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ext4_common.h') diff --git a/ext4_common.h b/ext4_common.h index 145b0da..238ff63 100644 --- a/ext4_common.h +++ b/ext4_common.h @@ -42,6 +42,12 @@ #define ARCH_DMA_MINALIGN 64 /* should be ok for all architectures */ +#ifdef DEBUG_PRINTF +#define dbg_printf printf +#else +#define dbg_printf(s, ...) +#endif + static inline void *zalloc(size_t size) { void *p = memalign(ARCH_DMA_MINALIGN, size); -- cgit v1.2.3