Re: [PATCH printk v4 4/6] printk: ringbuffer: change representation of states

From: Petr Mladek
Date: Wed Sep 09 2020 - 06:01:59 EST


On Tue 2020-09-08 22:34:57, John Ogness wrote:
> Rather than deriving the state by evaluating bits within the flags
> area of the state variable, assign the states explicit values and
> set those values in the flags area. Introduce macros to make it
> simple to read and write state values for the state variable.
>
> Although the functionality is preserved, the binary representation
> for the states is changed.
>
> Signed-off-by: John Ogness <john.ogness@xxxxxxxxxxxxx>

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr