projects
/
lwext4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ext4_debug: add DEBUG_NOPREFIX flag for debug printf
[lwext4.git]
/
lwext4
/
ext4_debug.h
diff --git
a/lwext4/ext4_debug.h
b/lwext4/ext4_debug.h
index 35d30034a55c45e6cfaf28697467863278b7fad4..f3f591da36b563122e112befd23f1390a417ef39 100644
(file)
--- a/
lwext4/ext4_debug.h
+++ b/
lwext4/ext4_debug.h
@@
-80,6
+80,7
@@
extern "C" {
#define DEBUG_JBD (1ul << 16)
#define DEBUG_MBR (1ul << 17)
#define DEBUG_JBD (1ul << 16)
#define DEBUG_MBR (1ul << 17)
+#define DEBUG_NOPREFIX (1ul << 31)
#define DEBUG_ALL (0xFFFFFFFF)
static inline const char *ext4_dmask_id2str(uint32_t m)
#define DEBUG_ALL (0xFFFFFFFF)
static inline const char *ext4_dmask_id2str(uint32_t m)
@@
-145,8
+146,8
@@
uint32_t ext4_dmask_get(void);
/**@brief Debug printf.*/
#define ext4_dbg(m, ...) \
do { \
/**@brief Debug printf.*/
#define ext4_dbg(m, ...) \
do { \
- if (
m & ext4_dmask_get()) {
\
- if (
CONFIG_DEBUG_PREFIX) {
\
+ if (
(m) & ext4_dmask_get()) {
\
+ if (
!((m) & DEBUG_NOPREFIX)) {
\
printf("%s", ext4_dmask_id2str(m)); \
printf("l: %d ", __LINE__); \
} \
printf("%s", ext4_dmask_id2str(m)); \
printf("l: %d ", __LINE__); \
} \