u-boot/drivers/mtd/ubi/debug.h
.. .. @@ -28,13 +28,8 @@ 28 28 } \ 29 29 } while (0) 30 30 #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)38 33 #endif 39 34 40 35 #define ubi_dbg_print_hex_dump(ps, pt, r, g, b, len, a) \