eal: update assertion macro
authorIlya V. Matveychikov <matvejchikov@gmail.com>
Sun, 19 Nov 2017 08:18:49 +0000 (12:18 +0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 22 Dec 2017 00:25:13 +0000 (00:25 +0000)
commit65f88eb2842649e442e781d58a0228b3e8970e45
treee3768957e67c7a518ebd74e2398a6d8204df9275
parente976052a1106153c93c802e5ffd2f6c8a29f239f
eal: update assertion macro

Update RTE_VERIFY macro to make it possible to use complex expressions
in RTE_ASSERT.

Now it’s possible to have % char inside the expression, for example:
RTE_ASSERT((sizeof(some_struct) % 64) == 0)

Before the patch, “%" sign acts like a conversion specification
beginning character.

Fixes: 148f963fb532 ("xen: core library changes")

Signed-off-by: Ilya V. Matveychikov <matvejchikov@gmail.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/common/include/rte_debug.h