mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib/util: add unlikely() to SMB_ASSERT()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
06f35edaf1
commit
bf1dd1a188
@ -33,7 +33,7 @@
|
||||
#ifdef _SAMBA_DEBUG_H
|
||||
#define SMB_ASSERT(b) \
|
||||
do { \
|
||||
if (!(b)) { \
|
||||
if (unlikely(!(b))) { \
|
||||
DEBUG(0,("PANIC: assert failed at %s(%d): %s\n", \
|
||||
__FILE__, __LINE__, #b)); \
|
||||
smb_panic("assert failed: " #b); \
|
||||
|
Loading…
Reference in New Issue
Block a user