summaryrefslogtreecommitdiff
path: root/include/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h
index 8b1e51e2c5..e83e2fe05e 100644
--- a/include/util.h
+++ b/include/util.h
@@ -18,11 +18,19 @@
*/
#ifdef CONFIG_DEBUG_ASSERT
#ifdef CONFIG_DEBUG_ASSERT_REBOOTS
+
+#ifdef CONFIG_DEBUG_ASSERT_BRIEF
+#define ASSERT(cond) do { \
+ if (!(cond)) \
+ panic_assert_fail(__FILE__, __LINE__); \
+ } while (0)
+#else
#define ASSERT(cond) do { \
if (!(cond)) \
panic_assert_fail(#cond, __func__, __FILE__, \
__LINE__); \
} while (0)
+#endif
#else
#define ASSERT(cond) do { \
if (!(cond)) \