Skip to content

Commit

Permalink
openamp: replace while(1) to metal_assert in RPMSG_ASSERT
Browse files Browse the repository at this point in the history
replace while(1) to metal_assert

Signed-off-by: Guiding Li <liguiding1@xiaomi.com>
  • Loading branch information
GUIDINGLI authored and arnopo committed Apr 19, 2021
1 parent bcec517 commit 5a5ac5e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/rpmsg/rpmsg_internal.h
Expand Up @@ -21,18 +21,11 @@ extern "C" {
if (!(_exp)) { \
metal_log(METAL_LOG_EMERGENCY, \
"FATAL: %s - "_msg, __func__); \
while (1) { \
; \
} \
metal_assert(_exp); \
} \
} while (0)
#else
#define RPMSG_ASSERT(_exp, _msg) do { \
if (!(_exp)) \
while (1) { \
; \
} \
} while (0)
#define RPMSG_ASSERT(_exp, _msg) metal_assert(_exp)
#endif

#define RPMSG_BUF_HELD (1U << 31) /* Flag to suggest to hold the buffer */
Expand Down

0 comments on commit 5a5ac5e

Please sign in to comment.