On Fri, 17 Mar 2017 16:51:15 +0100 Olivier Matz <olivier.m...@6wind.com> wrote:
> if (type < RTE_LOGTYPE_FIRST_EXT_ID) { > + if (enable) > + rte_logs.type |= type; > + else > + rte_logs.type &= (~type) No need for () around ~type
On Fri, 17 Mar 2017 16:51:15 +0100 Olivier Matz <olivier.m...@6wind.com> wrote:
> if (type < RTE_LOGTYPE_FIRST_EXT_ID) { > + if (enable) > + rte_logs.type |= type; > + else > + rte_logs.type &= (~type) No need for () around ~type