mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 01:59:54 +00:00
Fix ASSERT() macro with '%' in the expression
Fix a compiling error triggered by ASSERT(exp), when exp contains '%' (e.g. integer modular operator) Signed-off-by: Robin Hsu <robinhsu@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
ca0ed8a66f
commit
4bd7008291
@ -194,8 +194,8 @@ static inline uint64_t bswap_64(uint64_t val)
|
||||
#define ASSERT(exp) \
|
||||
do { \
|
||||
if (!(exp)) { \
|
||||
printf("[ASSERT] (%s:%4d) " #exp"\n", \
|
||||
__func__, __LINE__); \
|
||||
printf("[ASSERT] (%s:%4d) %s\n", \
|
||||
__func__, __LINE__, #exp); \
|
||||
exit(-1); \
|
||||
} \
|
||||
} while (0)
|
||||
|
Loading…
Reference in New Issue
Block a user