Re: [PATCH v2 3/3] vsprintf: dump full information of page flags in pGp

From: Andy Shevchenko
Date: Mon Feb 01 2021 - 11:06:02 EST


On Mon, Feb 01, 2021 at 09:52:53PM +0800, Yafang Shao wrote:
> On Mon, Feb 1, 2021 at 9:34 PM Andy Shevchenko
> <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> > On Mon, Feb 01, 2021 at 02:23:33PM +0100, David Hildenbrand wrote:
> > > On 01.02.21 12:56, Yafang Shao wrote:

...

> > > Printing that in addition to the raw value could be helpful. Just some
> > > thoughts.
> >
> > printf() buffer is not a black hole, esp. when you get it messed with critical
> > messages (Oops). I suggest to reduce a burden as much as possible. If you wish
> > to get this, make it caller-configurable, i.e. adding another letter to the
> > specifier.
> >
>
> I think David's suggestion will help us to identify issues.
>
> You mean that we should use another one like "%pGpd" - means pGp debug
> - to implement it ?

Yes.

--
With Best Regards,
Andy Shevchenko