ztest: Do not print garbage if message is NULL
Change-Id: If79f4b92b2c494bf5fd44cb1855bba61029f7ac7 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
f528c09276
commit
68f087cee9
|
@ -87,7 +87,7 @@ static inline void _assert(int cond, const char *msg, const char *default_msg,
|
|||
*/
|
||||
|
||||
#define assert(cond, msg, default_msg) \
|
||||
_assert(cond, msg, msg ? ("(" default_msg ")") : (default_msg), \
|
||||
_assert(cond, msg ? msg : "", msg ? ("(" default_msg ")") : (default_msg), \
|
||||
__FILE__, __LINE__, __func__)
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue