summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-07-10 13:38:07 +0200
committerHeiko Schocher <hs@denx.de>2022-07-20 05:50:13 +0200
commite2e6caa01ba97bcdb82100c6b928b5743e3aae6c (patch)
tree1dd034f402699f5d4af49ae676258c1900cf3386 /fs
parentb4f210563e63e5d4b73e3232fd7156424533063e (diff)
ubifs: Use U-Boot assert() from <log.h> in UBI/UBIFS code
U-Boot already provides assert function, so it use also in ubi and ubifs code. Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/ubifs/debug.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h
index d69f1e6ac7..0ecc2e0c8e 100644
--- a/fs/ubifs/debug.h
+++ b/fs/ubifs/debug.h
@@ -165,14 +165,9 @@ struct ubifs_global_debug_info {
dbg_snprintf_key(c, key, __tmp_key_buf, DBG_KEY_BUF_LEN)); \
} while (0)
#else
-#define ubifs_assert(expr) do { \
- if (unlikely(!(expr))) { \
- pr_debug("UBIFS assert failed in %s at %u\n", \
- __func__, __LINE__); \
- dump_stack(); \
- } \
-} while (0)
+#include <log.h>
+#define ubifs_assert(expr) assert(expr)
#define ubifs_assert_cmt_locked(c) do { } while (0)
#define ubifs_dbg_msg(type, fmt, ...) \