ref: 93593daf7f4cdd35de4b3676138a65f8a75766a3
parent: 25ae70a7469ac86bcd1dafcd30a5c1934955bd32
author: ngkaho1234 <[email protected]>
date: Thu Oct 29 14:13:12 EDT 2015
ext4_dbg now shows line number
--- a/lwext4/ext4_debug.h
+++ b/lwext4/ext4_debug.h
@@ -135,8 +135,10 @@
/**@brief Debug printf.*/
#define ext4_dbg(m, ...) \
do { \
+ int __line = __LINE__; \
if (m & ext4_dmask_get()) { \
printf(ext4_dmask_id2str(m)); \
+ printf("line: %d ", __line); \
printf(__VA_ARGS__); \
fflush(stdout); \
} \