diff options
author | Tom Rini <trini@konsulko.com> | 2019-08-07 23:13:35 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-08-07 23:13:35 -0400 |
commit | db857dcbbfe993c21781524e44404f9800db87c7 (patch) | |
tree | 6f94410d22fa9bffc0c44feb11241ef8e012edfd /include/log.h | |
parent | 7127151d538d878bd073ca6d6cca630a4b35b76f (diff) | |
parent | 0b6febfdb3cf9b4a51fa65fbd94f9ab2d7738f32 (diff) |
Merge branch '2019-08-07-master-imports'
- Misc Android / AVB bugfixes (including updating the header from
Android).
- MediaTek updates
- Other assorted bugfixes.
Diffstat (limited to 'include/log.h')
-rw-r--r-- | include/log.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h index 7566ba7f2d..6d15e955d7 100644 --- a/include/log.h +++ b/include/log.h @@ -183,6 +183,18 @@ int _log(enum log_category_t cat, enum log_level_t level, const char *file, */ void __assert_fail(const char *assertion, const char *file, unsigned int line, const char *function); + +/** + * assert() - assert expression is true + * + * If the expression x evaluates to false and _DEBUG evaluates to true, a panic + * message is written and the system stalls. The value of _DEBUG is set to true + * if DEBUG is defined before including common.h. + * + * The expression x is always executed irrespective of the value of _DEBUG. + * + * @x: expression to test + */ #define assert(x) \ ({ if (!(x) && _DEBUG) \ __assert_fail(#x, __FILE__, __LINE__, __func__); }) |