hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
u-boot/drivers/mtd/ubi/debug.h
....@@ -28,13 +28,8 @@
2828 } \
2929 } while (0)
3030 #else
31
-#define ubi_assert(expr) do { \
32
- if (unlikely(!(expr))) { \
33
- pr_debug("UBI assert failed in %s at %u\n", \
34
- __func__, __LINE__); \
35
- dump_stack(); \
36
- } \
37
-} while (0)
31
+#include <log.h>
32
+#define ubi_assert(expr) assert(expr)
3833 #endif
3934
4035 #define ubi_dbg_print_hex_dump(ps, pt, r, g, b, len, a) \