[PATCH printk v4 3/6] printk: ringbuffer: clear initial reserved fields

Petr Mladek pmladek at suse.com
Wed Sep 9 05:34:31 EDT 2020


On Tue 2020-09-08 22:34:56, John Ogness wrote:
> prb_reserve() will set some meta data values and leave others
> uninitialized (or rather, containing the values of the previous
> wrap). Simplify the API by always clearing out all the fields.
> Only the sequence number is filled in. The caller is now
> responsible for filling in the rest of the meta data fields.
> In particular, for correctly filling in text and dict lengths.
> 
> Signed-off-by: John Ogness <john.ogness at linutronix.de>

Reviewed-by: Petr Mladek <pmladek at suse.com>

Best Regards,
Petr



More information about the kexec mailing list