#ifndef EXT4_DEBUG_H_
#define EXT4_DEBUG_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "ext4_config.h"
#include "ext4_errno.h"
#define ext4_dbg(m, ...) \
do { \
if (m & ext4_dmask_get()) { \
- printf(ext4_dmask_id2str(m)); \
- printf(__VA_ARGS__); \
+ if (CONFIG_DEBUG_PREFIX) { \
+ printf("%s", ext4_dmask_id2str(m)); \
+ printf("l: %d ", __LINE__); \
+ } \
+ printf(__VA_ARGS__); \
fflush(stdout); \
- } \
+ } \
} while (0)
#else
#define ext4_dbg(m, ...) do { } while (0)
#define ext4_assert(_v)
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* EXT4_DEBUG_H_ */
/**