Merge branch 'linux-libspl' into refs/top-bases/linux-zfs-branch
This commit is contained in:
commit
7d01d9e14a
|
@ -65,13 +65,11 @@ extern void __assert(const char *, const char *, int);
|
|||
|
||||
/* BEGIN CSTYLED */
|
||||
#define VERIFY3_IMPL(LEFT, OP, RIGHT, TYPE) do { \
|
||||
const TYPE __left = (TYPE)(LEFT); \
|
||||
const TYPE __right = (TYPE)(RIGHT); \
|
||||
if (!(__left OP __right)) { \
|
||||
if (!((TYPE)(LEFT) OP (TYPE)(RIGHT))) { \
|
||||
char *__buf = alloca(256); \
|
||||
(void) snprintf(__buf, 256, "%s %s %s (0x%llx %s 0x%llx)", \
|
||||
#LEFT, #OP, #RIGHT, \
|
||||
(u_longlong_t)__left, #OP, (u_longlong_t)__right); \
|
||||
(u_longlong_t)(LEFT), #OP, (u_longlong_t)(RIGHT)); \
|
||||
__assert(__buf, __FILE__, __LINE__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
|
Loading…
Reference in New Issue