diff options
author | Iru Cai <mytbk920423@gmail.com> | 2019-10-30 15:09:20 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2019-10-30 15:09:20 +0800 |
commit | eef8e7b05ffab4c7d12a5f7e135357c0462c180c (patch) | |
tree | c9f0168afa6bc3588d55fddcbf50a59c8074ce8c /ext4_common.h | |
parent | ae51f41d14f548d494ac41e0d21137c5a4c3f59c (diff) | |
download | uext4-eef8e7b05ffab4c7d12a5f7e135357c0462c180c.tar.xz |
printf -> dbg_printf
Diffstat (limited to 'ext4_common.h')
-rw-r--r-- | ext4_common.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |